Skip to content

Commit 06acbe0

Browse files
test(ci): add changelog job that runs cargo xtask changelog
1 parent eb26a12 commit 06acbe0

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: changelog
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'CHANGELOG.md'
7+
- 'xtask/**/*'
8+
9+
env:
10+
#
11+
# Dependency versioning
12+
#
13+
14+
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
15+
REPO_MSRV: "1.88"
16+
17+
#
18+
# Environment variables
19+
#
20+
21+
CARGO_INCREMENTAL: false
22+
CARGO_TERM_COLOR: always
23+
RUST_LOG: info
24+
RUST_BACKTRACE: '1'
25+
CACHE_SUFFIX: c # cache busting
26+
27+
jobs:
28+
changelog:
29+
timeout-minutes: 1
30+
31+
name: Check changelog for errors
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- name: Checkout repo
36+
uses: actions/checkout@v5
37+
with:
38+
fetch-depth: 0
39+
40+
- name: Run `cargo xtask changelog …`
41+
run: |
42+
cargo xtask changelog "origin/${{ github.event.pull_request.base.ref }}"

0 commit comments

Comments
 (0)