6997afd4f9
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
42 lines
863 B
YAML
42 lines
863 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
name: CI
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Init Hermit
|
|
run: ./bin/hermit env -r >> "$GITHUB_ENV"
|
|
- name: Test
|
|
run: go test ./...
|
|
|
|
test-windows:
|
|
name: Test / Windows
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.21
|
|
- name: Test
|
|
run: go test ./...
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Init Hermit
|
|
run: ./bin/hermit env -r >> "$GITHUB_ENV"
|
|
- name: golangci-lint
|
|
run: golangci-lint run
|