zenity/.github/workflows/go.yml

58 lines
938 B
YAML
Raw Normal View History

2021-07-28 10:00:38 -04:00
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
2022-03-24 12:02:19 -04:00
workflow_dispatch:
2021-07-28 10:00:38 -04:00
jobs:
2022-12-07 07:49:03 -05:00
unix:
2021-07-28 10:00:38 -04:00
runs-on: ubuntu-latest
steps:
2022-04-28 19:17:01 -04:00
- uses: actions/checkout@v3
2021-07-28 10:00:38 -04:00
- name: Set up Go
2022-04-28 19:17:01 -04:00
uses: actions/setup-go@v3
2021-07-28 10:00:38 -04:00
with:
2022-03-26 11:36:53 -04:00
go-version: 1.18
2021-07-28 10:00:38 -04:00
- name: Build
2022-05-02 09:03:51 -04:00
run: go build -v -tags dev ./...
2021-07-28 10:00:38 -04:00
- name: Test
run: go test -v ./...
2022-12-07 07:49:03 -05:00
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -short ./...
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -short ./...