-
Notifications
You must be signed in to change notification settings - Fork 23
51 lines (43 loc) · 1.23 KB
/
PR.yaml
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
name: Pull Request
on:
pull_request:
permissions:
contents: read
jobs:
# While golanglint-ci is also run in the mage file,
# adding an explicit gha step highlights the syntax errors
# when reviewing PRs
golint:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/[email protected]
with:
args: --timeout=10m
version: v1.60
test:
strategy:
fail-fast: false
matrix:
platform: [windows-2019, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
# This step is required otherwise the 'mage'
# command cannot be used in subsequent steps
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install Dependencies
run: |
go install github.com/magefile/[email protected]
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run E2E tests
shell: pwsh
run: |
Install-Module -Name DockerMsftProvider -Force
Import-Module -Name HostNetworkingService
set PSModulePath=&&powershell -command "mage TestAll"