-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.17 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
name: skysolve/ci
on:
push:
branches:
- main
tags:
- 'v*.*.*' # e.g., v1.0.0
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
lint:
strategy:
matrix:
go: [ '1.23.x' ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout 🛎
uses: actions/checkout@main
# Setup our base Go environment 🧬
- name: Setup Go Environment
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
# Install Go Staticcheck
- name: Install Go Staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
# Install Go Critic
- name: Install Go Critic
run: go install -v github.com/go-critic/go-critic/cmd/gocritic@latest
# Run Go Test
- name: Go Format
run: make format
# Run Go Vet
- name: Go Vet
run: make vet
# Run Go Lint
- name: Go Lint
run: make lint
# Run Go Critic
- name: Go Critic
run: make critic
# Run Go Test
- name: Go Test 🧪
run: make test