-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (40 loc) · 1.14 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
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@v1
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64
with:
version: v1.55
test:
strategy:
fail-fast: false
matrix:
platform: [windows-2019, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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"