-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 969 Bytes
/
ci.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
name: CI
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
go-version: ["1.15.7", "1.14.14"]
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Go modules
# not supported on windows with gh actions at the moment
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Setup Go for Building
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
- name: Build goweathertui
run: make build
- name: Test goweathertui
run: make test
- name: Show Coverage of goweathertui
run: make coverage