-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (40 loc) · 1.07 KB
/
ci.yaml
File metadata and controls
48 lines (40 loc) · 1.07 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
name: AppConfiguration-GoProvider CI
on:
push:
branches:
- main
- 'release/**'
pull_request:
branches:
- main
- 'release/**'
jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.22", "1.23", "1.24", "1.25"]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install dependencies
working-directory: ./azureappconfiguration
run: go mod download
- name: Build
working-directory: ./azureappconfiguration
run: go build -v ./...
- name: Test
working-directory: ./azureappconfiguration
run: go test -race -v ./...
if: runner.os != 'Windows'
- name: Test (without race detector)
working-directory: ./azureappconfiguration
run: go test -v ./...
if: runner.os == 'Windows'