-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (117 loc) · 3.53 KB
/
Copy pathtest.yaml
File metadata and controls
122 lines (117 loc) · 3.53 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json
name: test
on:
push: {}
workflow_call: {}
pull_request:
types: [opened, synchronize, reopened, edited]
env:
MISE_GITHUB_TOKEN: ${{ github.token }}
MISE_AUTO_INSTALL: "0"
jobs:
test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 180
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
install: false
cache: true
env: false
- run: >-
mise install task aqua:nextest-rs/nextest/cargo-nextest
github:romnn/cargo-feature-combinations
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: mozilla-actions/sccache-action@v0.0.10
- name: Feature-combination tests
run: task test:fc
- name: Doc-tests
run: task test:doc
integration:
name: integration (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 180
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
install: false
cache: true
env: false
- run: mise install task helm aqua:nextest-rs/nextest/cargo-nextest
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: mozilla-actions/sccache-action@v0.0.10
- name: Integration tests
run: task test:integration
network:
name: network (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 180
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
install: false
cache: true
env: false
- run: mise install task aqua:nextest-rs/nextest/cargo-nextest
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: mozilla-actions/sccache-action@v0.0.10
# Kept in its own job because it is the only suite that reaches the
# network: an upstream outage fails this job alone and leaves the
# deterministic suites green. It runs on every OS because what it
# proves — fetch, then write a reusable cache entry — is filesystem
# behavior that differs per platform.
- name: Fetch-on-demand tests
run: task test:network
publish:
name: publish (dry-run)
runs-on: ubuntu-24.04
timeout-minutes: 180
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: mozilla-actions/sccache-action@v0.0.10
- name: Publish crates (dry-run)
uses: romnn/publish-crates@main
with:
dry-run: true
resolve-versions: true