mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-27 05:37:39 +02:00
add game to ci
This commit is contained in:
parent
488ec979fd
commit
35b41a4dc9
29
.github/workflows/verify.yml
vendored
29
.github/workflows/verify.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Backend
|
name: Verify
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -7,12 +7,11 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
backend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: sfja/h5-mst-ci-backend:1.0
|
container: sfja/h5-mst-ci-backend:1.0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- name: check
|
- name: check
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: make check
|
run: make check
|
||||||
@ -23,3 +22,25 @@ jobs:
|
|||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
|
game:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- name: cache crates
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: check
|
||||||
|
working-directory: ./unnamed-game-engine
|
||||||
|
run: cargo check
|
||||||
|
- name: build
|
||||||
|
working-directory: ./unnamed-game-engine
|
||||||
|
run: cargo build
|
||||||
|
- name: test
|
||||||
|
working-directory: ./unnamed-game-engine
|
||||||
|
run: cargo test
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user