Skip to content

Commit 6256c67

Browse files
committed
chore(ci): cancel in-progress runs
1 parent aef9265 commit 6256c67

1 file changed

Lines changed: 41 additions & 37 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,47 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
concurrency:
10+
group: ci-${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
checks:
1115
runs-on: ubuntu-latest
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
node-version: ["22"]
16-
env:
17-
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres"
18-
BETTER_AUTH_SECRET: "ci_dummy_secret_change_me"
19-
BETTER_AUTH_URL: "http://localhost:3000"
20-
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
21-
ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v6
25-
26-
- name: Setup Node
27-
uses: actions/setup-node@v6
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
cache: "npm"
31-
32-
- name: Install
33-
run: npm ci
34-
35-
- name: Generate
36-
run: npm run generate
37-
38-
- name: Type check
39-
run: npm run type-check
40-
41-
- name: Lint
42-
run: npm run lint
43-
44-
- name: Security policy checks
45-
run: npm run security:check-api
46-
47-
- name: Build
48-
run: npm run build
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
node-version: ["22"]
20+
env:
21+
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres"
22+
BETTER_AUTH_SECRET: "ci_dummy_secret_change_me"
23+
BETTER_AUTH_URL: "http://localhost:3000"
24+
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
25+
ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v6
29+
30+
- name: Setup Node
31+
uses: actions/setup-node@v6
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: "npm"
35+
36+
- name: Install
37+
run: npm ci
38+
39+
- name: Generate
40+
run: npm run generate
41+
42+
- name: Type check
43+
run: npm run type-check
44+
45+
- name: Lint
46+
run: npm run lint
47+
48+
- name: Security policy checks
49+
run: npm run security:check-api
50+
51+
- name: Build
52+
run: npm run build

0 commit comments

Comments
 (0)