-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (38 loc) · 1.08 KB
/
merge.yaml
File metadata and controls
46 lines (38 loc) · 1.08 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
name: Merge
on:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [windows-2022]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
# This step is required otherwise the 'mage'
# command cannot be used in subsequent steps
- name: Install Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: 'stable'
cache: 'false'
- name: Install Dependencies
run: |
go install github.com/magefile/mage@v1.15.0
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.4.0
- name: Build
shell: pwsh
run: |
set PSModulePath=&&powershell -command "mage BuildAll"
- name: Run E2E tests
shell: pwsh
run: |
Install-Module -Name DockerMsftProvider -Force
Import-Module -Name HostNetworkingService
set PSModulePath=&&powershell -command "mage ci"