ScuttleBot

Blame History Raw 50 lines
1
name: CI
2
3
on:
4
push:
5
branches: [main]
6
pull_request:
7
branches: [main]
8
9
jobs:
10
build:
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v4
14
15
- uses: actions/setup-go@v5
16
with:
17
go-version-file: go.mod
18
cache: true
19
20
- name: Build
21
run: go build ./...
22
23
test:
24
runs-on: ubuntu-latest
25
steps:
26
- uses: actions/checkout@v4
27
28
- uses: actions/setup-go@v5
29
with:
30
go-version-file: go.mod
31
cache: true
32
33
- name: Test
34
run: go test ./...
35
36
lint:
37
runs-on: ubuntu-latest
38
steps:
39
- uses: actions/checkout@v4
40
41
- uses: actions/setup-go@v5
42
with:
43
go-version-file: go.mod
44
cache: true
45
46
- name: golangci-lint
47
run: |
48
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
49
golangci-lint run
50

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button