-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 788 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build and Deploy
on:
push:
branches:
- main
paths:
- '**/*.go'
pull_request:
branches:
- main
paths:
- '**/*.go'
jobs:
build-and-deploy:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform:
- ubuntu-latest
- macos-latest
- windows-latest
go-version:
- 1.19
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Build for ${{ matrix.platform }}
run: go build -v ./...
- name: Test
run: echo "No tests to run."