Run Integration tests on GHA #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test-win-2019: | |
runs-on: windows-2019 | |
steps: | |
- name: Install docker CE | |
shell: pwsh | |
run: | | |
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1 | |
.\install-docker-ce.ps1 | |
- 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/golangci-lint@v1.55.2 | |
- name: Run E2E tests | |
shell: pwsh | |
run: mage TestAll |