Add a Github action to compile the server

This commit is contained in:
kixelated 2023-05-22 16:01:40 -07:00 committed by GitHub
parent 5410a3767f
commit a1daa3687e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
.github/workflows/server.yml vendored Normal file
View File

@ -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