ci: set up ci actions
This commit is contained in:
parent
e4f1d8e54a
commit
e98369ec02
|
|
@ -0,0 +1,77 @@
|
|||
name: Continous Integration
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
# test_pull_request:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Install dependencies
|
||||
# uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 13.x
|
||||
# - run: npm ci
|
||||
# - run: npm test
|
||||
# - run: npm run build
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: TypeScript check
|
||||
run: yarn lint:tsc
|
||||
|
||||
- name: Eslint check
|
||||
run: yarn lint:script
|
||||
|
||||
unit_test:
|
||||
name: Unit test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Unit test
|
||||
run: yarn test:unit:ci
|
||||
|
||||
e2e_tests:
|
||||
name: E2E test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: E2E test
|
||||
run: yarn test:e2e:ci
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
# Forked from [mutoe/vue3-realworld-example-app](https://github.com/mutoe/vue3-realworld-example-app)
|
||||
|
||||
# Task Todo:
|
||||
- [ ] Set up repo
|
||||
- [ ] Set up CI actions
|
||||
- [X] Set up repo
|
||||
- [X] Set up CI actions
|
||||
- [ ] Set up CD actions
|
||||
- [ ] Set up Code analysis action
|
||||
- [ ] Fix bugs
|
||||
|
|
|
|||
Loading…
Reference in New Issue