-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (40 loc) · 1.03 KB
/
cpp-test.yml
File metadata and controls
48 lines (40 loc) · 1.03 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
on:
push:
branches:
- "main"
pull_request:
name: C++
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
name: Format and Lint
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- uses: prefix-dev/setup-pixi@v0.9.5
with:
environments: format-cpp
- name: Ensure code is properly formatted
run: |
pixi run format-cpp
git diff --exit-code
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macOS-latest, macOS-14, windows-latest ]
runs-on: ${{ matrix.os }}
needs: [ format ]
steps:
- name: Checkout source code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- uses: prefix-dev/setup-pixi@v0.9.5
with:
environments: test-cpp
- name: Run the tests
run: |
pixi run test-cpp