chore: update time entries for tests #10
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: Download dependencies | |
run: go mod download | |
- name: Tidy dependencies | |
run: go mod tidy | |
- name: Run static analysis | |
uses: golangci/golangci-lint-action@v5 | |
with: | |
version: v1.58 | |
args: --timeout=5m | |
- name: Run unit tests | |
run: go test -v ./... |