Debian Codegraph @

.github/workflows/scheduled.yml

raw symbols SCIP
1 # Run scheduled (rolling) jobs on a nightly basis, as your crate may break independently of any
2 # given PR. E.g., updates to rust nightly and updates to this crates dependencies. See check.yml for
3 # information about how the concurrency cancellation and workflow triggering works
4 permissions:
5 contents: read
6 on:
7 push:
8 branches: [main]
9 pull_request:
10 schedule:
11 - cron: '7 7 * * *'
12 concurrency:
13 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14 cancel-in-progress: true
15 name: rolling
16 jobs:
17 # https://twitter.com/mycoliza/status/1571295690063753218
18 nightly:
19 runs-on: ubuntu-latest
20 name: ubuntu / nightly
21 steps:
22 - uses: actions/checkout@v4
23 with:
24 submodules: true
25 - name: Install nightly
26 uses: dtolnay/rust-toolchain@nightly
27 - name: cargo generate-lockfile
28 if: hashFiles('Cargo.lock') == ''
29 run: cargo generate-lockfile
30 - name: cargo test --locked
31 run: cargo test --locked --all-features --all-targets
32 # https://twitter.com/alcuadrado/status/1571291687837732873
33 update:
34 # This action checks that updating the dependencies of this crate to the latest available that
35 # satisfy the versions in Cargo.toml does not break this crate. This is important as consumers
36 # of this crate will generally use the latest available crates. This is subject to the standard
37 # Cargo semver rules (i.e cargo does not update to a new major version unless explicitly told
38 # to).
39 runs-on: ubuntu-latest
40 name: ubuntu / beta / updated
41 # There's no point running this if no Cargo.lock was checked in in the first place, since we'd
42 # just redo what happened in the regular test job. Unfortunately, hashFiles only works in if on
43 # steps, so we repeat it.
44 steps:
45 - uses: actions/checkout@v4
46 with:
47 submodules: true
48 - name: Install beta
49 if: hashFiles('Cargo.lock') != ''
50 uses: dtolnay/rust-toolchain@beta
51 - name: cargo update
52 if: hashFiles('Cargo.lock') != ''
53 run: cargo update
54 - name: cargo test
55 if: hashFiles('Cargo.lock') != ''
56 run: cargo test --locked --all-features --all-targets
57 env:
58 RUSTFLAGS: -D deprecated