Skip to content

Commit 9002029

Browse files
authored
chore: update github action (#3608)
* chore: update github action * chore: remove error github action
1 parent 0f570eb commit 9002029

File tree

2 files changed

+17
-68
lines changed

2 files changed

+17
-68
lines changed

.github/workflows/auto-inspection.yml

-25
This file was deleted.

.github/workflows/build.yml

+17-43
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,29 @@
11
name: build
22

3-
on: ["push"]
3+
on: [push]
44

55
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v2
10-
- name: Use Node.js 14
11-
uses: actions/setup-node@v2
12-
with:
13-
node-version: 14
14-
- name: yarn install
15-
run: |
16-
yarn install
17-
- name: lint
18-
run: |
19-
npm run lint
20-
216
build:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@v2
25-
- name: Use Node.js 14
26-
uses: actions/setup-node@v2
27-
with:
28-
node-version: 14
29-
- name: yarn install
30-
run: |
31-
yarn install
32-
- name: build
33-
run: |
34-
npm run build
7+
runs-on: macOS-latest
358

36-
test:
37-
runs-on: macos-latest
389
steps:
39-
- uses: actions/checkout@v2
40-
- name: Use Node.js 14
41-
uses: actions/setup-node@v2
10+
- name: Checkout
11+
uses: actions/[email protected]
12+
13+
- name: Setup Node.js environment
14+
uses: actions/[email protected]
4215
with:
43-
node-version: 14
44-
- name: yarn install
45-
run: |
46-
yarn install
47-
- name: test
16+
node-version: '14'
17+
18+
- name: Run CI
4819
run: |
20+
npm install
21+
npm run lint
22+
npm run build
4923
npm run coverage
50-
env:
51-
CI: true
52-
- name: Coveralls
24+
25+
- name: Update coverall
26+
if: ${{ success() }}
5327
uses: coverallsapp/github-action@master
5428
with:
55-
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)