2022-04-12 08:22:49 +02:00
|
|
|
name: Tests
|
2022-04-09 20:56:25 +02:00
|
|
|
|
|
|
|
on:
|
2022-05-28 03:52:09 +02:00
|
|
|
workflow_dispatch:
|
2022-09-17 20:54:26 +02:00
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2022-04-09 20:56:25 +02:00
|
|
|
push:
|
2022-04-09 20:58:49 +02:00
|
|
|
branches: [ master ]
|
2022-04-09 20:56:25 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-04-09 21:19:01 +02:00
|
|
|
test:
|
2022-04-17 19:50:37 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2022-10-22 08:00:33 +02:00
|
|
|
continue-on-error: true
|
2022-04-17 19:50:37 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
2022-04-09 20:56:25 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
2022-09-21 08:20:28 +02:00
|
|
|
uses: actions/setup-go@v3
|
2022-04-09 20:56:25 +02:00
|
|
|
with:
|
2022-09-04 06:25:00 +02:00
|
|
|
go-version: 1.18
|
2022-04-09 21:19:01 +02:00
|
|
|
- name: Go test
|
2022-04-17 20:56:00 +02:00
|
|
|
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
2022-04-18 05:08:54 +02:00
|
|
|
run: |
|
2022-04-18 08:06:01 +02:00
|
|
|
sudo apt-get update || true
|
2022-10-20 02:58:32 +02:00
|
|
|
sudo apt-get install -y zsh fish || true
|
2022-10-21 00:46:30 +02:00
|
|
|
brew install fish tmux || true
|
2022-04-18 05:08:54 +02:00
|
|
|
make test
|