-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29b4ad4
commit a8507f1
Showing
2 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
go-version: [1.23.x] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{matrix.platform}} | ||
steps: | ||
- name: Set up Go ${{matrix.go-version}} | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{matrix.go-version}} | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Go modules | ||
run: go mod download | ||
env: | ||
GOPROXY: https://proxy.golang.org | ||
|
||
- name: Build | ||
run: go build -o ./bin/tetrigo -v ./cmd/tetrigo | ||
|
||
- name: Test | ||
run: ./bin/tetrigo test --output=group --output-group-begin='::group::{{.TASK}}' --output-group-end='::endgroup::' |