Repository navigation
chore(deps): bump docker/login-action from 4 to 4.5.2 #5
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ngms-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust: | |
| runs-on: [self-hosted, node-b, linux, x64, rust] | |
| env: | |
| CARGO_BUILD_JOBS: 1 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@1.95.0 | |
| with: | |
| components: rustfmt,clippy | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| - name: Build embedded web assets | |
| run: | | |
| npm --prefix ui ci --no-audit --no-fund | |
| npm --prefix ui run build | |
| npm --prefix client ci --no-audit --no-fund | |
| npm --prefix client run build | |
| - name: Verify public dependency boundary | |
| run: python3 scripts/check_dependency_sources.py | |
| - run: cargo fmt --all -- --check | |
| - run: cargo check --workspace --all-features --locked | |
| - run: cargo test --workspace --all-features --locked | |
| - run: cargo clippy --workspace --all-features --locked -- -D warnings | |
| ui: | |
| runs-on: [self-hosted, node-b, linux, x64, rust] | |
| strategy: | |
| matrix: | |
| project: [ui, client] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: ${{ matrix.project }}/package-lock.json | |
| - working-directory: ${{ matrix.project }} | |
| run: npm ci --no-audit --no-fund | |
| - working-directory: ${{ matrix.project }} | |
| run: npm run build | |
| ui-e2e: | |
| runs-on: [self-hosted, node-b, linux, x64, rust] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - working-directory: ui | |
| run: npm ci --no-audit --no-fund | |
| - working-directory: ui | |
| run: npx playwright install chromium | |
| - working-directory: ui | |
| run: npm run test:e2e | |
| container: | |
| if: github.event_name == 'push' | |
| needs: [rust, ui, ui-e2e] | |
| runs-on: [self-hosted, node-b, linux, x64, publish, docker] | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: docker/setup-buildx-action@v4 | |
| - uses: docker/login-action@v4.5.2 | |
| if: github.event_name == 'push' | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: docker/Dockerfile | |
| push: ${{ github.event_name == 'push' }} | |
| tags: | | |
| ghcr.io/thedancingdeveloper-org/ngms:latest | |
| ghcr.io/thedancingdeveloper-org/ngms:sha-${{ github.sha }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |