Skip to content

Commit bbaf18c

Browse files
committed
ci: init Github actions config file
1 parent 775db9d commit bbaf18c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
jobs:
14+
main:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: 20
23+
cache: 'npm'
24+
- run: npm ci
25+
- uses: nrwl/nx-set-shas@v3
26+
# This line is needed for nx affected to work when CI is running on a PR
27+
- run: git branch --track main origin/main
28+
29+
- run: npx nx format:check
30+
- run: npx nx affected -t lint,test,build

0 commit comments

Comments
 (0)