dump logs in github actions #26
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: Tests | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v1 | |
| - name: Start K3S | |
| run: make start-k3s | |
| - name: Run conformance tests | |
| run: make test-conformance | |
| - name: Run flaky conformance tests | |
| run: make test-conformance-flaky || true | |
| - name: Store logs | |
| if: always() | |
| run: | | |
| mkdir -p output | |
| docker logs f8n &> output/f8n-logs.txt || true | |
| docker logs k3s &> output/k3s-logs.txt || true | |
| - name: Upload artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-results | |
| path: output/ |