Skip to content

Commit

Permalink
ci: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Broderick-Westrope committed Aug 18, 2024
1 parent 29b4ad4 commit a8507f1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/go.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
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::'

0 comments on commit a8507f1

Please sign in to comment.