Add a Github action to compile the server
This commit is contained in:
parent
5410a3767f
commit
a1daa3687e
|
@ -0,0 +1,23 @@
|
||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Build
|
||||||
|
working-directory: server
|
||||||
|
run: cargo build --verbose
|
||||||
|
- name: Run tests
|
||||||
|
working-directory: server
|
||||||
|
run: cargo test --verbose
|
Loading…
Reference in New Issue