Skip to content

Commit b5b12a8

Browse files
committed
add ci job
1 parent 8425f7c commit b5b12a8

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/e2e-cli.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CLI E2E Tests
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
paths:
7+
- 'packages/cli/**'
8+
- 'packages/sdk/**'
9+
- 'package.json'
10+
- 'package-lock.json'
11+
- 'nx.json'
12+
- 'project.json'
13+
pull_request:
14+
branches: [main, develop]
15+
paths:
16+
- 'packages/cli/**'
17+
- 'packages/sdk/**'
18+
- 'package.json'
19+
- 'package-lock.json'
20+
- 'nx.json'
21+
- 'project.json'
22+
workflow_dispatch:
23+
24+
jobs:
25+
e2e-tests:
26+
name: CLI E2E Tests
27+
runs-on: ubuntu-latest
28+
29+
strategy:
30+
matrix:
31+
node-version: [18.x, 20.x]
32+
fail-fast: false
33+
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
40+
- name: Setup Node.js ${{ matrix.node-version }}
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: ${{ matrix.node-version }}
44+
cache: 'npm'
45+
46+
- name: Install dependencies
47+
run: npm ci
48+
49+
- name: Setup Nx cache
50+
uses: actions/cache@v4
51+
with:
52+
path: |
53+
~/.nx
54+
node_modules/.cache/nx
55+
key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}-${{ hashFiles('nx.json') }}
56+
restore-keys: |
57+
${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}-
58+
${{ runner.os }}-nx-
59+
60+
- name: Run CLI E2E tests
61+
run: npm run test:e2e
62+
env:
63+
CI: true
64+
NODE_ENV: test

0 commit comments

Comments
 (0)