29 lines
524 B
YAML
29 lines
524 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Test
|
|
run: go test mal-go/... -coverprofile=test-report.out
|
|
|
|
- name: Generate Report
|
|
run: go tool cover -html=test-report.out -o test-coverage.html
|
|
|
|
- name: Upload Report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: coverage-report
|
|
path: test-coverage.html
|
|
|