Skip to content

ci: finish GitHub Actions setup (#3) #9

ci: finish GitHub Actions setup (#3)

ci: finish GitHub Actions setup (#3) #9

Workflow file for this run

name: Test
on:
pull_request:
push:
tags:
- v*
branches:
- main
jobs:
test:
name: Test
strategy:
matrix:
go: [ 1.22.x, 1.23.x ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{matrix.os}}
steps:
- name: Set up Go ${{matrix.go-version}}
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go}}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Download Go modules
run: go mod download
- name: Build
run: go build -o ./bin/tetrigo -v ./cmd/tetrigo
- name: Test
run: go test -cover -count=1 -race ./...