Skip to content

feat!: fork mage as stave with CI automation #3

feat!: fork mage as stave with CI automation

feat!: fork mage as stave with CI automation #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version:
- stable
- "1.22"
- "1.21"
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -coverprofile=coverage.out ./...
env:
GOPATH: /home/runner/go
- name: Upload coverage
uses: codecov/codecov-action@v3
if: matrix.go-version == 'stable'
with:
files: coverage.out
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest