Skip to content

Merge pull request #21 from placeholder-app/dependabot/go_modules/goo… #45

Merge pull request #21 from placeholder-app/dependabot/go_modules/goo…

Merge pull request #21 from placeholder-app/dependabot/go_modules/goo… #45

Workflow file for this run

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 ./...