Skip to content

Commit 739965e

Browse files
committed
feat(.github/workflows): add new ci steps
1 parent 7bd7149 commit 739965e

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

.github/workflows/ci.yaml

+32-4
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,45 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16-
- uses: wagoid/commitlint-github-action@v4
17-
with:
18-
firstParent: true
16+
17+
- uses: wagoid/commitlint-github-action@v6
18+
1919
golangci:
20-
name: lint
20+
needs: commit_lint
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
24+
2425
- name: Run golangci-lint
2526
uses: golangci/golangci-lint-action@v6
2627
with:
2728
version: latest
2829
only-new-issues: false
2930
args: --timeout 2m --config .golangci.yaml
31+
32+
go_test:
33+
runs-on: ubuntu-latest
34+
needs: golangci
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Run unit test
39+
run: go test
40+
41+
checkhealth:
42+
runs-on: ubuntu-latest
43+
needs: go_test
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Run checkhealth
48+
run: make checkhealth
49+
50+
- id: pr_calculate
51+
run: echo "pr=${{ github.ref_name }}" | sed "s/\//#/" >> "$GITHUB_OUTPUT"
52+
53+
- uses: actions/upload-artifact@v4
54+
with:
55+
name: daje-${{ steps.pr_calculate.outputs.pr }}-${{ github.sha }}
56+
path: bin/daje
57+

0 commit comments

Comments
 (0)