-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-workflow.yml
More file actions
54 lines (44 loc) · 1.15 KB
/
example-workflow.yml
File metadata and controls
54 lines (44 loc) · 1.15 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
# Example GitHub Actions workflow for validating Instruqt labs
# Save this as .github/workflows/validate-labs.yml in your repository
name: Validate Labs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
lab:
- ./lab-1
- ./lab-2
- ./lab-3
steps:
- uses: actions/checkout@v4
- name: Setup Instruqt CLI
uses: instruqt/cli/setup@v1
- name: Validate lab
uses: instruqt/cli/validate@v1
with:
path: ${{ matrix.lab }}
# Alternative: validate all labs in sequence
validate-sequential:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Instruqt CLI
uses: instruqt/cli/setup@v1
- name: Validate lab 1
uses: instruqt/cli/validate@v1
with:
path: ./lab-1
- name: Validate lab 2
uses: instruqt/cli/validate@v1
with:
path: ./lab-2
- name: Validate lab 3
uses: instruqt/cli/validate@v1
with:
path: ./lab-3