-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (42 loc) · 1.11 KB
/
test.yml
File metadata and controls
50 lines (42 loc) · 1.11 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
name: Test
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
workflow_call:
jobs:
load-config:
name: Load CI Configuration
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.config.outputs.targets }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Load configuration
id: config
run: |
TARGETS=$(jq -c '.targets' .github/config.json)
echo "targets=$TARGETS" >> $GITHUB_OUTPUT
test:
name: Test
runs-on: ubuntu-latest
needs: load-config
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.load-config.outputs.targets) }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
# - name: Run tests
# run: cargo test --target ${{ matrix.target }} --all-features -- --nocapture
# - name: Run doc tests
# run: cargo test --target ${{ matrix.target }} --doc
- name: Run tests
run: echo "Tests are skipped!"