Skip to content

Commit

Permalink
fix(ci/check): refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Nov 5, 2023
1 parent e1aee87 commit e9a2875
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Lint and format check
on: [pull_request]
on:
push:
pull_request:

jobs:
prettier:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run prettier -check
Expand All @@ -15,14 +14,11 @@ jobs:
npm run format
eslint:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run eslint
run: |
npm ci
npm run lint

0 comments on commit e9a2875

Please sign in to comment.