Skip to content

Commit 234533c

Browse files
authored
ci: align workflow names with just tasks (#136)
1 parent e497674 commit 234533c

6 files changed

Lines changed: 44 additions & 100 deletions

File tree

.github/workflows/format.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: format
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
format:
10+
name: format
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: cachix/install-nix-action@v31
15+
- run: nix develop .#ci --command just format

.github/workflows/lint.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: lint
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
lint:
10+
name: lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: cachix/install-nix-action@v31
15+
- run: nix develop .#ci --command just lint

.github/workflows/nightly.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ permissions:
88
contents: write
99

1010
jobs:
11-
quality:
12-
uses: ./.github/workflows/quality.yaml
11+
format:
12+
uses: ./.github/workflows/format.yaml
13+
14+
lint:
15+
uses: ./.github/workflows/lint.yaml
1316

1417
test:
1518
uses: ./.github/workflows/test.yaml
1619

1720
dist:
1821
name: Build (${{ matrix.target }})
19-
needs: [quality, test]
22+
needs: [format, lint, test]
2023
runs-on: ${{ matrix.os }}
2124
strategy:
2225
matrix:

.github/workflows/quality.yaml

Lines changed: 0 additions & 91 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
quality:
13-
uses: ./.github/workflows/quality.yaml
12+
format:
13+
uses: ./.github/workflows/format.yaml
14+
15+
lint:
16+
uses: ./.github/workflows/lint.yaml
1417

1518
test:
1619
uses: ./.github/workflows/test.yaml
1720

1821
dist:
1922
name: Build (${{ matrix.target }})
20-
needs: [quality, test]
23+
needs: [format, lint, test]
2124
runs-on: ${{ matrix.os }}
2225
strategy:
2326
matrix:

.github/workflows/test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
name: Test
1+
name: test
22

33
on:
44
workflow_call:
55
pull_request:
6-
push:
76
branches: [main]
87

98
jobs:
109
test:
11-
name: Test (${{ matrix.os }})
10+
name: test (${{ matrix.os }})
1211
runs-on: ${{ matrix.os }}
1312
strategy:
1413
matrix:

0 commit comments

Comments
 (0)