-
Notifications
You must be signed in to change notification settings - Fork 125
56 lines (46 loc) · 1.07 KB
/
lmstfy.yaml
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
47
48
49
50
51
52
53
54
55
56
name: Lmstfy Actions # don't edit while the badge was depend on this
on:
push:
branches:
- master
- feature/*
tags:
- v*
pull_request:
branches:
- master
- feature/*
jobs:
lint-build-test:
name: Lint/Build/Test
strategy:
matrix:
go-version: [1.17.x,1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
- name: Checkout Code Base
uses: actions/checkout@v2
- name: Restore Go Module Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Make Lint
run: make lint
- name: Build
run: make
- name: Test
run: make test
- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella