forked from UBAutograding/leviathan
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (54 loc) · 1.17 KB
/
test.yml
File metadata and controls
60 lines (54 loc) · 1.17 KB
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
60
name: Go Lint and Test
on:
workflow_dispatch:
# todo
# push:
# tags:
# - 'v*' # match tags that start with v (like v1.0.0)
# branches:
# - release
# - master
# - dev
# paths:
# - 'src/**'
# - .github/workflows/test.yml
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.64
working-directory: src
# test: todo
# name: test go
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
#
# - uses: actions/setup-go@v5
# with:
# go-version: '1.24'
# cache: true
#
# # docker setup for running tests
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Install dependencies
# run: go mod download
#
# - name: Run test
# run: |
# go test ./service/jobs/ -v -run Test500Jobs