Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: ci
2 on:
3 pull_request:
4 branches:
5 - master
6 push:
7 branches:
8 - master
9 schedule:
10 - cron: '00 01 * * *'
11
12 # The section is needed to drop write-all permissions that are granted on
13 # `schedule` event. By specifying any permission explicitly all others are set
14 # to none. By using the principle of least privilege the damage a compromised
15 # workflow can do (because of an injection or compromised third party tool or
16 # action) is restricted. Currently the worklow doesn't need any additional
17 # permission except for pulling the code. Adding labels to issues, commenting
18 # on pull-requests, etc. may need additional permissions:
19 #
20 # Syntax for this section:
21 # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
22 #
23 # Reference for how to assign permissions on a job-by-job basis:
24 # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
25 #
26 # Reference for available permissions that we can enable if needed:
27 # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
28 permissions:
29 # to fetch code (actions/checkout)
30 contents: read
31
32 jobs:
33 test:
34 name: test
35 runs-on: ${{ matrix.os }}
36 strategy:
37 fail-fast: false
38 matrix:
39 include:
40 - build: pinned
41 os: ubuntu-latest
42 rust: 1.85.0
43 - build: stable
44 os: ubuntu-latest
45 rust: stable
46 - build: beta
47 os: ubuntu-latest
48 rust: beta
49 - build: nightly
50 os: ubuntu-latest
51 rust: nightly
52 - build: macos
53 os: macos-latest
54 rust: stable
55 - build: win-msvc
56 os: windows-latest
57 rust: stable
58 - build: win-gnu
59 os: windows-latest
60 rust: stable-x86_64-gnu
61 steps:
62 - name: Checkout repository
63 uses: actions/checkout@v4
64 - name: Install Rust
65 uses: dtolnay/rust-toolchain@master
66 with:
67 toolchain: ${{ matrix.rust }}
68 - run: cargo build --verbose
69 - run: cargo doc --verbose
70 - run: cargo test --verbose
71 - run: cargo build --verbose --manifest-path quickcheck_macros/Cargo.toml
72 - run: cargo test --verbose --manifest-path quickcheck_macros/Cargo.toml
73
74 rustfmt:
75 runs-on: ubuntu-latest
76 steps:
77 - name: Checkout repository
78 uses: actions/checkout@v4
79 - name: Install Rust
80 uses: dtolnay/rust-toolchain@master
81 with:
82 toolchain: stable
83 components: rustfmt
84 - name: Check formatting
85 run: |
86 cargo fmt --all -- --check