hishtory/.github/workflows/go-test.yml
2022-09-03 21:25:00 -07:00

26 lines
532 B
YAML

name: Tests
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Go test
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
run: |
sudo apt-get update || true
sudo apt-get install -y zsh || true
make test