zenity/.github/workflows/go.yml

61 lines
1 KiB
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:
2023-01-27 10:26:12 -05:00
go-version: oldstable
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
2023-01-27 10:26:12 -05:00
- name: Update coverage badge
uses: ncruces/go-coverage-report@v0.1.0
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:
2023-01-27 10:26:12 -05:00
go-version: oldstable
2022-12-07 07:49:03 -05:00
- 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:
2023-01-27 10:26:12 -05:00
go-version: oldstable
2022-12-07 07:49:03 -05:00
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -short ./...