Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qba73 committed Oct 20, 2023
1 parent 1f397d1 commit ca4d996
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Go

on:
push:
branches: [main]
pull_request:
branches: [main]

# Based on https://github.com/mvdan/github-actions-golang
on: [push, pull_request]
name: Tests
jobs:
build:
runs-on: ubuntu-latest
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x, 1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout main
uses: actions/checkout@v2

- name: Run unit tests
run: |
make test-ci
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test ./...

0 comments on commit ca4d996

Please sign in to comment.