This commit is contained in:
@@ -4,6 +4,9 @@ on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
build_path: _build
|
||||
|
||||
jobs:
|
||||
go-test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -16,16 +19,16 @@ jobs:
|
||||
with:
|
||||
go-version: "1.26.x"
|
||||
|
||||
- name: Install just
|
||||
- name: Check Formatting
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y just
|
||||
gofmt -l .
|
||||
exit $(gofmt -l . | wc -l)
|
||||
|
||||
- name: Run tests
|
||||
run: just test
|
||||
run: go test --vebose ./...
|
||||
|
||||
- name: Generate coverage
|
||||
run: just test-coverage
|
||||
run: go test -v -coverprofile=${build_path}/coverage.out ./...
|
||||
|
||||
- name: Code Coverage Report
|
||||
uses: irongut/CodeCoverageSummary@v1.3.0
|
||||
|
||||
Reference in New Issue
Block a user