forked from eshulman2/openstack-resource-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 706 Bytes
/
Copy pathunit.yml
File metadata and controls
34 lines (29 loc) · 706 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
on:
push:
branches:
- main
merge_group:
pull_request:
name: go test
permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # tag=v6.0.3
with:
persist-credentials: false
- name: Calculate go version
id: vars
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # tag=v6.4.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- run: |
make test