-
Notifications
You must be signed in to change notification settings - Fork 23
46 lines (37 loc) · 1.04 KB
/
test.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
name: Tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [windows-2019, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
# Environment requirements:
# https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment
- name: Test docker
run: |
docker version
docker pull hello-world
docker run hello-world
- 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/mage@latest
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"