mirror of
https://github.com/lunchcat/sif.git
synced 2026-01-09 03:41:07 -08:00
25 lines
586 B
YAML
25 lines
586 B
YAML
name: Go
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "1.24"
|
|
- name: Build
|
|
run: make
|
|
- name: Run tests with coverage
|
|
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./coverage.out
|
|
fail_ci_if_error: false
|