e2e tests on Windows #120
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: e2e tests on Windows | |
on: | |
schedule: | |
- cron: '13 5 * * 1-5' | |
workflow_dispatch: {} | |
defaults: | |
run: | |
shell: powershell | |
jobs: | |
e2e-tests: | |
timeout-minutes: 90 | |
runs-on: [self-hosted, Windows, X64, win11] | |
steps: | |
- run: wsl --unregister rancher-desktop | |
continue-on-error: true | |
- run: wsl --unregister rancher-desktop-data | |
continue-on-error: true | |
- run: Remove-Item -Path "$HOME/AppData/Local/rancher-desktop" -Recurse -Force -ErrorAction Ignore | |
- run: Remove-Item -Path "$HOME/AppData/Roaming/rancher-desktop" -Recurse -Force -ErrorAction Ignore | |
- name: Remove golang module cache | |
run: Remove-Item -Path "$HOME/go/pkg/mod" -Recurse -Force -ErrorAction Ignore | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
cache: npm | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.18' | |
cache: 'true' | |
# This appears to only allow caching one dependency; pick one at | |
# random. | |
cache-dependency-path: src/go/rdctl/go.sum | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run e2e Tests | |
run: yarn test:e2e | |
env: | |
RD_DEBUG_ENABLED: '1' | |
- name: Upload failure reports | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: e2etest-artifacts | |
path: ./e2e/reports/* |