Add GitHub Actions workflows for app and Docker checks #3

Merged
wandabastyle merged 2 commits from codex/add-github-actions-checks-for-app-and-docker into main 2026-04-25 11:18:16 +02:00
wandabastyle commented 2026-04-25 11:07:49 +02:00 (Migrated from github.com)

Motivation

  • Provide continuous validation on pull requests and pushes to main to catch regressions early.
  • Run existing Rust checks (fmt, check, clippy, test) and frontend verification (pnpm run verify) automatically.
  • Ensure the repository's Docker image can be built in CI to detect packaging issues early.

Description

  • Add .github/workflows/app-checks.yml which triggers on pull_request and push to main and provides two jobs: rust and web.
  • The rust job installs the toolchain with clippy and rustfmt and runs cargo fmt -- --check, cargo check, cargo clippy --all-targets --all-features -- -D warnings, and cargo test.
  • The web job runs in the web working directory, sets up pnpm and Node.js, installs dependencies with pnpm install --frozen-lockfile, and runs pnpm run verify.
  • Add .github/workflows/docker-checks.yml which triggers on pull_request and push to main and sets up Buildx then builds the Docker image using docker/build-push-action with push: false (image tagged twitch-relay:ci).

Testing

  • Ran cargo check locally and it completed successfully.
  • No GitHub Actions were executed here; CI workflows are added and will run on PRs and pushes to main once pushed to the remote.

Codex Task

### Motivation - Provide continuous validation on pull requests and pushes to `main` to catch regressions early. - Run existing Rust checks (`fmt`, `check`, `clippy`, `test`) and frontend verification (`pnpm run verify`) automatically. - Ensure the repository's Docker image can be built in CI to detect packaging issues early. ### Description - Add `.github/workflows/app-checks.yml` which triggers on `pull_request` and `push` to `main` and provides two jobs: `rust` and `web`. - The `rust` job installs the toolchain with `clippy` and `rustfmt` and runs `cargo fmt -- --check`, `cargo check`, `cargo clippy --all-targets --all-features -- -D warnings`, and `cargo test`. - The `web` job runs in the `web` working directory, sets up `pnpm` and Node.js, installs dependencies with `pnpm install --frozen-lockfile`, and runs `pnpm run verify`. - Add `.github/workflows/docker-checks.yml` which triggers on `pull_request` and `push` to `main` and sets up Buildx then builds the Docker image using `docker/build-push-action` with `push: false` (image tagged `twitch-relay:ci`). ### Testing - Ran `cargo check` locally and it completed successfully. - No GitHub Actions were executed here; CI workflows are added and will run on PRs and pushes to `main` once pushed to the remote. ------ [Codex Task](https://chatgpt.com/codex/cloud/tasks/task_e_69ec8394c3bc8328955d7876fefc6cd8)
Sign in to join this conversation.
No description provided.