Generic ability #1012
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Server | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/server.yml' | |
- 'server/**' | |
- '!server/resources/**' | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/server.yml' | |
- 'server/**' | |
- '!server/resources/**' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_server: | |
name: Build Server | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install cargo-audit | |
run: cargo install cargo-audit | |
- name: Builds | |
run: cargo build --verbose | |
- name: Test | |
run: cargo test --verbose | |
- name: Check | |
run: cargo check --verbose | |
- name: Audit | |
run: cargo audit |