From e9a287521487e925f7112d2f602c4d132d4558ff Mon Sep 17 00:00:00 2001 From: Eric Zhu Date: Sun, 5 Nov 2023 13:46:57 -0500 Subject: [PATCH] fix(ci/check): refactor --- .github/workflows/check.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8c895d4..ad6d9e7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 @@ -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 +