Resurrect library development #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
test: | |
name: Acceptance Tests | |
strategy: | |
matrix: | |
go: [1.21, 1.22] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install dependencies | |
run: go mod download | |
- name: Run static analysis | |
uses: golangci/golangci-lint-action@v5 | |
with: | |
version: v1.57 | |
- name: Run unit tests | |
run: go test -v ./... |