-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (34 loc) · 820 Bytes
/
go.yaml
File metadata and controls
38 lines (34 loc) · 820 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
name: Golang Validation
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
jobs:
golang-checks:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.24]
steps:
- uses: actions/checkout@v2
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go mod download
- name: Tidy dependencies
run: |
go mod tidy -diff
- name: Check Format
run: |
gofmt -s -l database logging sse *.go
- name: Run Tests
run: |
go test ./database
- name: Run vet
run: |
go vet ./database/ ./logging/ ./sse/
go vet *.go