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