-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (56 loc) · 1.72 KB
/
rust-stability.yml
File metadata and controls
62 lines (56 loc) · 1.72 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
name: Monthly stability checks
on:
pull_request:
push:
paths:
- ".github/workflows/rust-stability.yml"
schedule:
- cron: '0 3 6 * *'
workflow_dispatch:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
fail-fast: false
matrix:
channel: ["stable", "beta", "nightly"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: update rust
run: rustup set profile default && rustup install ${{ matrix.channel }}
- name: Set bootstrap
run: test "${{ matrix.channel }}" != "nightly" && echo "RUSTC_BOOTSTRAP=1" >> $GITHUB_ENV || true
- name: Run tests
run: cargo "+${{ matrix.channel }}" test --no-fail-fast
lint:
strategy:
fail-fast: false
matrix:
channel: ["stable", "beta", "nightly"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: update rust
run: rustup set profile default && rustup install ${{ matrix.channel }}
- name: Set bootstrap
run: test "${{ matrix.channel }}" != "nightly" && echo "RUSTC_BOOTSTRAP=1" >> $GITHUB_ENV || true
- name: clippy
run: cargo +${{ matrix.channel }} clippy -- --deny warnings
report:
if: ${{ always() }}
needs: [test, lint]
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v6
- name: Create issue on failure
if: ${{ github.event_name != 'pull_request' && (needs.test.result == 'failure' || needs.lint.result == 'failure') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue create --title "Monthly tests failed" --body "Run ID: $GITHUB_RUN_ID" --assignee "MusicalNinjaDad"