Repository navigation
62 lines (53 loc) · 1.56 KB
/
Copy pathvalidate-cli.yml
File metadata and controls
62 lines (53 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Validate CLI
on:
push:
branches:
- main
paths:
- "cli/**"
- "frontend/src/core/task-attention.js"
- "backend/**"
- "package.json"
- "package-lock.json"
- ".github/workflows/validate-cli.yml"
pull_request:
paths:
- "cli/**"
- "frontend/src/core/task-attention.js"
- "backend/**"
- "package.json"
- "package-lock.json"
- ".github/workflows/validate-cli.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
cli:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
name: CLI unit and end-to-end tests
runs-on: [self-hosted, contabo]
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@v6
# `dataops login` runs the shared device-login loop from DataTalksClub/auth.
- name: Check out the shared auth repository
uses: actions/checkout@v6
with:
repository: DataTalksClub/auth
path: .shared-auth
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".node-version"
cache: npm
cache-dependency-path: package-lock.json
- name: Install Node workspace dependencies
run: npm ci
- name: Run CLI unit tests
run: make test-cli
env:
DTC_AUTH_HOME: ${{ github.workspace }}/.shared-auth
- name: Run the CLI against a local backend
run: make test-cli-e2e