-
Notifications
You must be signed in to change notification settings - Fork 29
72 lines (59 loc) · 1.75 KB
/
PR.yaml
File metadata and controls
72 lines (59 loc) · 1.75 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Pull Request
on:
pull_request:
permissions:
contents: read
jobs:
validate:
strategy:
fail-fast: false
matrix:
platform: [ windows-2022 ]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v5
# This step is required otherwise the 'mage'
# command cannot be used in subsequent steps
- name: Install Go
uses: actions/setup-go@v6
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: Compare System Agent Replace Statements
run : |
set PSModulePath=&&powershell -command "mage EnsureSystemAgentDependencies"
test:
strategy:
fail-fast: false
matrix:
platform: [windows-2022]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v5
# This step is required otherwise the 'mage'
# command cannot be used in subsequent steps
- name: Install Go
uses: actions/setup-go@v6
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"