From 6fd4e30f1ff8bfc44725df765bbea581303f3db5 Mon Sep 17 00:00:00 2001 From: CzBiX Date: Thu, 3 Sep 2020 14:21:03 +0800 Subject: [PATCH] Limit release branch --- .github/workflows/ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cea99d..2c75d69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,6 @@ name: CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request] env: TZ: Asia/Shanghai @@ -24,13 +20,13 @@ jobs: - run: yarn install --frozen-lockfile if: steps.cache.outputs.cache-hit != 'true' - - run: yarn run lint + - run: yarn run lint --no-fix --max-warnings 0 - run: yarn run test:unit build: needs: [test] runs-on: ubuntu-latest - if: github.event_name == 'push' + if: github.event_name == 'push' && github.ref == 'release' steps: - uses: actions/checkout@v2 - name: Use Node.js