chore: update golangci-lint to v2.11.4 #407
Workflow file for this run
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 (Python) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] # fence (sandbox) supported platforms | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout CLI | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install Linux sandbox dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y bubblewrap socat uidmap | |
| # Configure subuid/subgid for the runner user (required for unprivileged user namespaces) | |
| echo "$(whoami):100000:65536" | sudo tee -a /etc/subuid | |
| echo "$(whoami):100000:65536" | sudo tee -a /etc/subgid | |
| # Make bwrap setuid so it can create namespaces as non-root user | |
| sudo chmod u+s $(which bwrap) | |
| - name: Build CLI | |
| run: make build | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Clone drift-python-demo | |
| run: git clone https://github.com/Use-Tusk/drift-python-demo.git ../drift-python-demo | |
| - name: Install demo dependencies | |
| working-directory: ../drift-python-demo | |
| run: | | |
| python -m venv venv | |
| source venv/bin/activate | |
| pip install -r requirements.txt | |
| - name: Run Python E2E tests Non-Interactive | |
| working-directory: ../drift-python-demo | |
| run: | | |
| source venv/bin/activate | |
| $GITHUB_WORKSPACE/tusk drift run --print | |
| # Exits non-zero if any test has deviations | |
| # CI environments don't have a TTY, so the CLI falls back to headless mode by default. | |
| # TUSK_TUI_CI_MODE=1 forces TUI mode, skips size warning, and auto-exits on completion. | |
| - name: Run E2E tests Interactive | |
| timeout-minutes: 2 | |
| working-directory: ../drift-python-demo | |
| env: | |
| TUSK_TUI_CI_MODE: "1" | |
| run: | | |
| source venv/bin/activate | |
| $GITHUB_WORKSPACE/tusk drift run |