-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 928 Bytes
/
Copy pathci.yaml
File metadata and controls
44 lines (39 loc) · 928 Bytes
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:
push:
branches:
- master
tags:
- '*.*.*'
pull_request:
branches:
- '**'
jobs:
ci:
name: Continuous integration
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.23.0'
check-latest: true
cache-dependency-path: |
go.sum
- uses: actions/cache@v4
with:
path: |
~/go/bin/mockery
~/go/bin/golangci-lint
~/go/bin/gotestsum
key: ${{ runner.os }}-go-binary-tools-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-binary-tools-
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run CI
run: task ci