Skip to content

Commit

Permalink
feat(.github/workflows): add new ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Wabri committed Aug 8, 2024
1 parent 7bd7149 commit e4f5e76
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,45 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
with:
firstParent: true

- uses: wagoid/commitlint-github-action@v6

golangci:
name: lint
needs: commit_lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
only-new-issues: false
args: --timeout 2m --config .golangci.yaml

go_test:
runs-on: ubuntu-latest
needs: golangci
steps:
- uses: actions/checkout@v4

- name: Run unit test
run: go test

checkhealth:
runs-on: ubuntu-latest
needs: go_test
steps:
- uses: actions/checkout@v4

- name: Run checkhealth
run: make checkhealth

- id: pr_calculate
run: echo "pr=${{ github.ref_name }}" | sed "/\//#/" >> "$GITHUB_OUTPUT"

- uses: actions/upload-artifact@v4
with:
name: daje-${{ steps.pr_calculate.outputs.pr }}-${{ github.sha }}
path: bin/daje

0 comments on commit e4f5e76

Please sign in to comment.