Skip to content

Commit f00a48b

Browse files
committed
ci: build, lint and run tests
1 parent c6df093 commit f00a48b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
main:
19+
runs-on: ubuntu-latest
20+
env:
21+
NEXT_PUBLIC_TURNSTILE_SITEKEY: 'e2e-sitekey'
22+
GIT_COMMIT_SHA: ${{ github.sha }}
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- name: Setup pnpm
29+
uses: pnpm/action-setup@v4
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version-file: .nvmrc
34+
cache: 'pnpm'
35+
- name: Setup dependencies
36+
run: pnpm install --frozen-lockfile
37+
# Install Cypress dependencies
38+
- run: pnpm cypress install --force
39+
- uses: nrwl/nx-set-shas@v4
40+
- run: pnpm exec nx affected --parallel 3 --target lint test build
41+
- run: pnpm exec nx affected --parallel 1 --target e2e-ci

0 commit comments

Comments
 (0)