-
Notifications
You must be signed in to change notification settings - Fork 178
55 lines (49 loc) · 1.42 KB
/
g-code-confirm-tests.yaml
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
name: 'G-Code-Confirm'
on:
# Run on any change to the api directory
pull_request:
paths:
- 'api/**'
- 'g-code-testing/**'
- 'Makefile'
push:
paths:
- 'api/**'
- 'g-code-testing/**'
- 'Makefile'
- '.github/workflows/g-code-confirm-tests.yaml'
branches:
- 'edge'
- 'release'
- '*hotfix*'
create:
tags:
- 'v*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.ref_name != 'edge' || github.run_id}}-${{ github.ref_type != 'tag' || github.run_id }}
cancel-in-progress: true
jobs:
confirm-g-code:
strategy:
matrix:
command: ['2-modules', 'swift-smoke', 'swift-turbo', 'omega', 'fast']
name: 'Confirm G-Code (${{ matrix.command }})'
runs-on: 'ubuntu-22.04'
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- uses: 'actions/setup-node@v4'
with:
node-version: '12'
- uses: 'actions/setup-python@v3'
with:
python-version: '3.10'
- uses: './.github/actions/python/setup'
with:
project: 'g-code-testing'
- name: 'Verify no missing comparison files'
run: make -C g-code-testing check-for-missing-comparison-files
- name: 'Run & Compare to comparison files'
run: make -C g-code-testing test-g-code-${{ matrix.command }}