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 521c4f6
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,48 @@ 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 "s/\//#/" >> "$GITHUB_OUTPUT"

- id: sha_short
run: echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"

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

0 comments on commit 521c4f6

Please sign in to comment.