-
Notifications
You must be signed in to change notification settings - Fork 19
105 lines (89 loc) · 3.11 KB
/
Copy pathcheck.yml
File metadata and controls
105 lines (89 loc) · 3.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
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
name: check
permissions:
contents: read
# This configuration allows maintainers of this repo to create a branch and pull request based on
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets
# built once.
on:
push:
branches:
- main
- latest
pull_request:
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash -xe {0}
jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- name: cargo fmt
run: nix develop --command cargo fmt --check
check-dev-deps:
name: Check dev-deps.txt
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- run: nix develop --command ./scripts/dev-deps.sh
- run: |
if git diff --quiet; then
echo "No changes"
else
echo "::error::Changes in dev-deps.txt detected"
git diff
exit 1
fi
check-js-runtime-freshness:
name: JS runtime pins up to date
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
- name: Check JS runtime version pins are newer than their sources
run: ./scripts/check-js-runtime-freshness.sh
deny:
name: cargo deny
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- name: cargo deny
run: nix develop --command cargo deny --config .config/deny.toml check
clippy:
name: clippy
runs-on: ubuntu-24.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
cache-on-failure: true
- name: cargo clippy
run: nix develop --command cargo clippy --workspace --all-targets -- -D warnings