Merge pull request #23 from placeholder-app/dependabot/go_modules/gol… #47
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: Go Tests | |
on: | |
push: | |
branches: ["master"] | |
paths-ignore: | |
- ".vscode/**" | |
- ".github/**" | |
pull_request: | |
branches: ["master"] | |
paths-ignore: | |
- ".vscode/**" | |
- ".github/**" | |
jobs: | |
test: | |
if: ${{ github.repository_owner == 'placeholder-app' }} | |
strategy: | |
matrix: | |
go-version: [1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Clone repository | |
- uses: actions/checkout@v3 | |
# Install dependencies | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
# Build application | |
- name: Compile Application | |
run: go build -v ./... | |
working-directory: ./ | |
# Run tests | |
- run: go version | |
- run: go test -v ./... | |
- run: go test -race ./... |