Skip to content

Commit

Permalink
Fixed yarn setup and trying to limit action invokations to one on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
6XGate committed Nov 1, 2024
1 parent 1320593 commit 1540112
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test and coverage checks

on: [push, pull_request]
on:
push:
branches: [$default-branch, $protected-branches]
pull_request: {}

jobs:
eslint:
Expand All @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Style and form checks

on: [push, pull_request]
on:
push:
branches: [$default-branch, $protected-branches]
pull_request: {}

jobs:
eslint:
Expand All @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: TypeScript checks

on: [push, pull_request]
on:
push:
branches: [$default-branch, $protected-branches]
pull_request: {}

jobs:
eslint:
Expand All @@ -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
Expand Down

0 comments on commit 1540112

Please sign in to comment.