diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1199961..9216d14 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,9 @@ name: Test and coverage checks -on: [push, pull_request] +on: + push: + branches: [$default-branch, $protected-branches] + pull_request: {} jobs: eslint: @@ -20,7 +23,8 @@ jobs: check-latest: true - name: Setup yarn run: | - corepack enable yarn@1 + corepack enable yarn + corepack install - name: Install dependencies run: | yarn --frozen-lockfile --ignore-scripts diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d0a65cb..d7b90f6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,9 @@ name: Style and form checks -on: [push, pull_request] +on: + push: + branches: [$default-branch, $protected-branches] + pull_request: {} jobs: eslint: @@ -20,7 +23,8 @@ jobs: check-latest: true - name: Setup yarn run: | - corepack enable yarn@1 + corepack enable yarn + corepack install - name: Install dependencies run: | yarn --frozen-lockfile --ignore-scripts diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 60ba08f..7e9fc92 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -1,6 +1,9 @@ name: TypeScript checks -on: [push, pull_request] +on: + push: + branches: [$default-branch, $protected-branches] + pull_request: {} jobs: eslint: @@ -20,7 +23,8 @@ jobs: check-latest: true - name: Setup yarn run: | - corepack enable yarn@1 + corepack enable yarn + corepack install - name: Install dependencies run: | yarn --frozen-lockfile --ignore-scripts