Skip to content

Commit

Permalink
chore: limit workflow concurrency and triggers (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki authored Jan 9, 2024
1 parent ac68030 commit eb805f6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: Continuous Integration

on: ['push', 'pull_request']
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand All @@ -11,10 +24,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout respository
- name: ⬇️ Checkout respository
uses: actions/checkout@v4

- name: Setup
- name: 🏗 Setup
uses: ./.github/actions/setup

- name: Lint
Expand All @@ -26,10 +39,10 @@ jobs:
type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout respository
- name: ⬇️ Checkout respository
uses: actions/checkout@v4

- name: Setup
- name: 🏗 Setup
uses: ./.github/actions/setup

- name: Type check
Expand All @@ -41,10 +54,10 @@ jobs:
env:
NODE_ENV: 'test'
steps:
- name: Checkout respository
- name: ⬇️ Checkout respository
uses: actions/checkout@v4

- name: Setup
- name: 🏗 Setup
uses: ./.github/actions/setup

- name: Test
Expand All @@ -61,10 +74,10 @@ jobs:
- runner: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout respository
- name: ⬇️ Checkout respository
uses: actions/checkout@v4

- name: Setup
- name: 🏗 Setup
uses: ./.github/actions/setup

- name: Prune devDependencies
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
branches:
- main
- release-*
pull_request:
paths-ignore:
- 'apps/documentation/**'
branches:
- main
- release-*

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -16,7 +23,7 @@ jobs:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- name: Checkout Repo
- name: ⬇️ Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit eb805f6

Please sign in to comment.