Skip to content

Commit b2329de

Browse files
committed
ci: split ci into multiple jobs
This isolates the different parts of the CI process into separate jobs. But also, it allows to run them in parallel.
1 parent 7140bdc commit b2329de

File tree

4 files changed

+57
-38
lines changed

4 files changed

+57
-38
lines changed

.github/workflows/actions-lint.yaml

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

.github/workflows/ci.yml

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

.github/workflows/files.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
name: Files Lint
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read # for actions/checkout to fetch code
11+
12+
jobs:
13+
action-lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: checkout-action
17+
uses: actions/[email protected]
18+
19+
- name: actionlint
20+
uses: raven-actions/[email protected]
21+
22+
yamllint:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: checkout-action
26+
uses: actions/[email protected]
27+
28+
- name: yamllint
29+
uses: ibiqlik/action-yamllint@v3
30+
31+
typos:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: checkout-action
35+
uses: actions/[email protected]
36+
37+
- name: typos-action
38+
uses: crate-ci/[email protected]
39+
40+
markdownlint:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: checkout-action
44+
uses: actions/[email protected]
45+
46+
- name: markdownlint-cli2-action
47+
uses: DavidAnson/[email protected]
48+
49+
editorconfig:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: checkout-action
53+
uses: actions/[email protected]
54+
55+
- name: editorconfig-checker-action
56+
uses: editorconfig-checker/action-editorconfig-checker@v2

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
go-test-lint:
1010
name: Test & Lint
1111
strategy:
12-
fail-fast: false # continue to run all jobs even if one fails
12+
fail-fast: false # continue to run all jobs even if one fails
1313
matrix:
1414
include:
1515
- {os: ubuntu-latest, GOOS: linux, GOARCH: amd64, go-version: stable}

0 commit comments

Comments
 (0)