Skip to content

Commit

Permalink
Improve CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 26, 2024
1 parent 5bd03d7 commit cf0da62
Showing 1 changed file with 1 addition and 59 deletions.
60 changes: 1 addition & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,65 +44,7 @@ jobs:
run: make deps

- name: Run tests
run: go test -v -covermode count -coverprofile cover.out ./...

- name: Send coverage data to Coveralls
uses: essentialkaos/goveralls-action@v2
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
profile: cover.out
parallel: true
flag-name: linux-${{ matrix.go }}

- name: Send coverage data to Codacy
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
--force-coverage-parser go \
-r cover.out \
--partial
SendCoverage:
name: Send Coverage
runs-on: ubuntu-latest
if: success() || failure()

needs: Go

steps:
- name: Finish parallel tests (Coveralls)
uses: essentialkaos/goveralls-action@v2
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
parallel-finished: true

- name: Finish parallel tests (Codacy)
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) final

Aligo:
name: Aligo
runs-on: ubuntu-latest

needs: Go

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'

- name: Check Golang sources with Aligo
uses: essentialkaos/aligo-action@v2
with:
files: ./...
run: make test

Typos:
name: Typos
Expand Down

0 comments on commit cf0da62

Please sign in to comment.