Merge pull request #8911 from rancher-sandbox/dependabot/npm_and_yarn… #6672
This file contains hidden or 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 Linux | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| pull_request: {} | |
| jobs: | |
| check-paths: | |
| uses: ./.github/workflows/paths-ignore.yaml | |
| e2e-tests: | |
| needs: check-paths | |
| if: needs.check-paths.outputs.should-run == 'true' | |
| timeout-minutes: 150 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/yarn-install | |
| - name: Disable admin-access before start up | |
| run: | | |
| mkdir -p $HOME/.config/rancher-desktop | |
| cat <<EOF > $HOME/.config/rancher-desktop/settings.json | |
| { | |
| "version": 5, | |
| "application": { | |
| "adminAccess": false | |
| } | |
| } | |
| EOF | |
| - name: Enable kvm access | |
| run: sudo chmod a+rwx /dev/kvm | |
| - name: Run e2e Tests | |
| continue-on-error: false | |
| run: >- | |
| xvfb-run --auto-servernum --server-args='-screen 0 1280x960x24' | |
| yarn test:e2e | |
| env: | |
| RD_DEBUG_ENABLED: '1' | |
| CI: true | |
| timeout-minutes: 150 | |
| - name: Upload failure reports | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: always() | |
| with: | |
| name: failure-reports.zip | |
| path: ./e2e/reports/* | |
| - name: Clean up test environment | |
| run: | | |
| rm -f $HOME/.config/rancher-desktop.defaults.json | |
| rm -f $HOME/.config/rancher-desktop.locked.json | |
| if: always() |