-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.01 KB
/
ci.yml
File metadata and controls
47 lines (44 loc) · 1.01 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
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
test:
strategy:
matrix:
go: ["1.24", "stable"]
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
cache: true
- name: Run go tests
env:
TEST_CF_ZONE_NAME: "${{ vars.TEST_CF_ZONE_NAME }}"
TEST_CF_ZONE_ID: "${{ vars.TEST_CF_ZONE_ID }}"
TEST_CF_APITOKEN: "${{ secrets.TEST_CF_APITOKEN }}"
run: go test --race ./...
golangci:
strategy:
matrix:
go: ["1.24", "stable"]
lint: ["v2.5.0"]
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: ${{ matrix.lint }}