Skip to content

Commit fb81959

Browse files
committed
ci: Create CI
1 parent 3d10611 commit fb81959

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- main
10+
- develop
11+
12+
jobs:
13+
ci_linter_eslint:
14+
name: ci:linter:eslint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: 'npm'
22+
- run: npm ci
23+
- run: npm run lint
24+
25+
ci_tests_units:
26+
name: ci:tests:units
27+
if: github.event_name == 'pull_request'
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: 'npm'
35+
- run: npm ci
36+
- run: npm run test
37+
38+
ci_build_app:
39+
name: ci:build:app
40+
if: github.event_name == 'pull_request'
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version: 20
47+
cache: 'npm'
48+
- run: npm ci
49+
- run: npm run build

0 commit comments

Comments
 (0)