Skip to content

Commit 57cbbce

Browse files
authored
Merge pull request #20 from litestar-org/ci/pr
ci: add lint + test on PRs
2 parents 8e175d4 + de7a004 commit 57cbbce

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: pr-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
- run: corepack enable
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: '24'
21+
cache: 'pnpm'
22+
- run: pnpm install --frozen-lockfile
23+
- name: Format check
24+
run: pnpm format:check
25+
- name: Lint
26+
run: pnpm lint:check
27+
28+
test:
29+
needs: lint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
- run: corepack enable
34+
- uses: actions/setup-node@v6
35+
with:
36+
node-version: '24'
37+
cache: 'pnpm'
38+
- run: pnpm install --frozen-lockfile
39+
- name: Tests (unit + nuxt)
40+
run: pnpm test-all
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)