-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.3 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
shellcheck:
runs-on: "ubuntu-22.04"
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run shellcheck
uses: ludeeus/action-shellcheck@master
with:
version: v0.8.0
scandir: "./scripts"
severity: info
go-test:
runs-on: "ubuntu-22.04"
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.21.3"
- run: make test
build:
runs-on: "ubuntu-22.04"
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.21.3"
- name: Test GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.21.2
args: release --skip=publish --clean --snapshot
distribution: goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}