diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 96386f6..54ee675 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -3,11 +3,13 @@ name: Backend on: push: branches: [ "main" ] + paths: [ "backend/**" ] pull_request: branches: [ "main" ] jobs: - verify: + check: + name: Check runs-on: ubuntu-latest container: sfja/h5-mst-ci:backend-ci steps: diff --git a/.github/workflows/game.yml b/.github/workflows/game.yml index 32e32d4..5e03c3e 100644 --- a/.github/workflows/game.yml +++ b/.github/workflows/game.yml @@ -3,11 +3,15 @@ name: Game on: push: branches: [ "main" ] + paths: [ "game/**" ] pull_request: branches: [ "main" ] jobs: - verify: + check: + name: Check + needs: [lint, build_and_test] + lint: runs-on: ubuntu-latest container: sfja/h5-mst-ci:game-ci steps: @@ -20,6 +24,12 @@ jobs: working-directory: ./game continue-on-error: true run: cargo clippy + build_and_test: + runs-on: ubuntu-latest + container: sfja/h5-mst-ci:game-ci + steps: + - uses: actions/checkout@v6 + - run: rustup default stable - name: Build working-directory: ./game run: cargo build diff --git a/.github/workflows/skateboard.yml b/.github/workflows/skateboard.yml index 67f2570..c7ab5a3 100644 --- a/.github/workflows/skateboard.yml +++ b/.github/workflows/skateboard.yml @@ -3,11 +3,13 @@ name: Skateboard on: push: branches: [ "main" ] + paths: [ "skateboard/**" ] pull_request: branches: [ "main" ] jobs: - verify: + check: + name: Check runs-on: ubuntu-latest container: espressif/idf:release-v5.5 steps: diff --git a/README.md b/README.md index 2248b7a..9879248 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # Skate project ![backend workflow](https://github.com/Mercantec-GHC/h5-projekt-mst/actions/workflows/backend.yml/badge.svg) + ![game workflow](https://github.com/Mercantec-GHC/h5-projekt-mst/actions/workflows/game.yml/badge.svg) + ![skateboard workflow](https://github.com/Mercantec-GHC/h5-projekt-mst/actions/workflows/skateboard.yml/badge.svg) - [Notion - H5](https://mercantec.notion.site/h5-2026)