Skip to content

Commit 7a337aa

Browse files
classabbyampthe-maldridge
authored andcommitted
.github/workflows/ci.yaml: split into multiple steps
also various other improvements
1 parent 58cd1d8 commit 7a337aa

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,42 @@
11
name: Check PR
2-
on: pull_request
2+
on:
3+
pull_request:
4+
paths:
5+
- 'src/**'
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
310

411
jobs:
5-
only:
12+
contents:
613
name: Check formatting and links
714
runs-on: ubuntu-latest
815
container:
9-
image: ghcr.io/void-linux/void-linux:latest-mini-x86_64-musl
16+
image: ghcr.io/void-linux/void-linux:latest-full-x86_64-musl
1017
steps:
1118
- name: Prepare container
1219
run: |
1320
xbps-install -Syu || xbps-install -Syu xbps
1421
xbps-install -yu
15-
xbps-install -y mdbook-linkcheck vmdfmt git findutils
16-
- uses: actions/checkout@v1
17-
- run: ./res/ci/format.sh
22+
xbps-install -y mdbook-linkcheck vmdfmt git findutils bash
23+
- name: Checkout
24+
id: checkout
25+
uses: classabbyamp/treeless-checkout-action@v1
26+
- name: Check summary
27+
if: steps.checkout.conclusion == 'success'
28+
run: res/ci/check-summary.sh
29+
- name: Check formatting
30+
if: success() || failure()
31+
run: res/ci/format.sh
32+
- name: Check links
33+
if: success() || failure()
34+
run: res/ci/linkcheck.sh
35+
commits:
36+
name: Check commits
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: classabbyamp/treeless-checkout-action@v1
41+
- name: Check commit messages
42+
run: res/ci/commit-lint.sh

0 commit comments

Comments
 (0)