forked from aptible/supercronic
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 889 Bytes
/
Copy pathtest.yml
File metadata and controls
43 lines (34 loc) · 889 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
39
40
41
42
43
name: tests
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.24.4]
steps:
- name: install golang
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Setup Bats and bats libs
id: setup-bats
uses: bats-core/bats-action@3.0.0
- name: install govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: checkout code
uses: actions/checkout@v4
- name: run tests
run: make test
env:
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
- name: run vuln check
run: make vulncheck