Skip to content

Commit

Permalink
chore: update github action (#3608)
Browse files Browse the repository at this point in the history
* chore: update github action

* chore: remove error github action
  • Loading branch information
hustcc authored Jun 26, 2023
1 parent 0f570eb commit 9002029
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 68 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/auto-inspection.yml

This file was deleted.

60 changes: 17 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,29 @@
name: build

on: ["push"]
on: [push]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: yarn install
run: |
yarn install
- name: lint
run: |
npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: yarn install
run: |
yarn install
- name: build
run: |
npm run build
runs-on: macOS-latest

test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.5
with:
node-version: 14
- name: yarn install
run: |
yarn install
- name: test
node-version: '14'

- name: Run CI
run: |
npm install
npm run lint
npm run build
npm run coverage
env:
CI: true
- name: Coveralls
- name: Update coverall
if: ${{ success() }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9002029

Please sign in to comment.