-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 936 Bytes
/
build-test.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
44
45
46
name: build_and_tests
on:
push:
paths-ignore:
- 'bin/**'
- 'images/**'
- 'share/**'
- '.github/**'
- '**.md'
- '.gitignore'
tags:
- v*
branches:
- master
- main
- feature/**
- bugfix/**
pull_request:
types:
- opened
jobs:
build:
name: Build
strategy:
matrix:
go-version: [1.18.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check out source code
uses: actions/checkout@v2
- name: Build
env:
GOPROXY: "https://proxy.golang.org"
run: go build ./example/cmd/simple/main.go
- name: Test
env:
GOPROXY: "https://proxy.golang.org"
run: go test -v ./...