From 1540112d6748d3fbdb3488d81c8eec175db5dcc9 Mon Sep 17 00:00:00 2001 From: Matthew Holder Date: Thu, 31 Oct 2024 23:18:25 -0500 Subject: [PATCH] Fixed yarn setup and trying to limit action invokations to one on PRs --- .github/workflows/coverage.yml | 8 ++++++-- .github/workflows/lint.yml | 8 ++++++-- .github/workflows/typecheck.yml | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) 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