-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (33 loc) · 977 Bytes
/
build.yaml
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
name: Build
on:
pull_request:
branches: ['main']
push:
branches: [ main ]
schedule:
- cron: '0 0 * * *'
jobs:
build:
defaults:
run:
working-directory: image/git-init
strategy:
fail-fast: false
matrix:
go-version: ['1.20', '1.21', '1.22']
name: Build ${{ matrix.go-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
check-latest: true
# FIXME: figure out how to configure or use golangci-lint
# - uses: golang/govulncheck-action@dd3ead030e4f2cf713062f7a3395191802364e13 # v1
# with:
# go-package: ./image/git-init/...
# go-version-input: ${{ matrix.go-version }}
- run: |
go build ./...
go test -run=^$ ./...