Add GitHub Actions e2e test workflow using Dagger #10
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: | |
| push: {} | |
| pull_request: {} | |
| jobs: | |
| e2e: | |
| name: e2e | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Enable unprivileged user namespaces (required by Apptainer) | |
| run: sudo sysctl -w kernel.unprivileged_userns_clone=1 | |
| - name: Setup e2e environment | |
| run: bash scripts/k3s-test-setup.sh | |
| - name: Run e2e tests | |
| run: bash scripts/k3s-test-run.sh | |
| - name: Upload test logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-test-logs | |
| path: /tmp/interlink-test-* | |
| retention-days: 7 | |
| if-no-files-found: ignore | |
| - name: Cleanup | |
| if: always() | |
| run: bash scripts/k3s-test-cleanup.sh |