-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 999 Bytes
/
ci.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
name: CI
on:
workflow_dispatch:
inputs:
debug_ssh:
description: "Enable SSH debug with tmate, see https://github.com/marketplace/actions/debugging-with-tmate"
required: false
type: boolean
default: false
pull_request:
push:
branches:
- master
schedule:
- cron: "0 0 * * 1" # Every Monday
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.x"
- name: Debug with tmate SSH if enabled
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_ssh }}
uses: mxschmitt/action-tmate@v3
- run: make test-cover
- uses: codecov/codecov-action@v2
- uses: golangci/golangci-lint-action@v3
with:
version: "v1.46.2"
- run: make check-tidy