docs: add architecture diagram showing the restore pipeline #5
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: test | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| unit: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.7' | |
| cache: true | |
| - name: Install CGO build dependencies | |
| run: sudo apt-get update && sudo apt-get install -y build-essential libc6-dev | |
| - name: gofmt check | |
| run: | | |
| out=$(gofmt -l cmd internal) | |
| if [ -n "$out" ]; then | |
| echo "The following files need gofmt:" | |
| echo "$out" | |
| exit 1 | |
| fi | |
| - name: go vet | |
| run: go vet ./... | |
| - name: go test | |
| run: go test ./... -count=1 | |
| e2e: | |
| name: End-to-end test | |
| runs-on: ubuntu-latest | |
| needs: unit | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.7' | |
| cache: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libc6-dev restic | |
| - name: Verify Docker is available | |
| run: docker version | |
| - name: Run end-to-end test | |
| run: ./scripts/test-e2e.sh | |
| - name: Upload reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-reports | |
| path: | | |
| .e2e/report.json | |
| .e2e/report.html | |
| if-no-files-found: ignore | |
| failures: | |
| name: Failure-mode tests | |
| runs-on: ubuntu-latest | |
| needs: unit | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.7' | |
| cache: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libc6-dev restic python3 | |
| - name: Run failure-mode tests | |
| run: ./scripts/test-failures.sh | |
| sigterm: | |
| name: SIGTERM cleanup test | |
| runs-on: ubuntu-latest | |
| needs: unit | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.7' | |
| cache: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libc6-dev restic | |
| - name: Verify Docker is available | |
| run: docker version | |
| - name: Run SIGTERM cleanup test | |
| run: ./scripts/test-sigterm.sh |