Skip to content

fix: make course names required #188

fix: make course names required

fix: make course names required #188

Workflow file for this run

# This is the main CI workflow that runs the test suite on all pushes to main and all pull requests.
#
# See static-analysis.yml for information about how the concurrency cancellation works.
name: test suite
permissions:
contents: read
on:
push:
branches: ['master']
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
RUST_BACKTRACE: '1'
STEAM_WEB_API_KEY: ${{ secrets.STEAM_WEB_API_KEY }}
SQLX_OFFLINE: '1'
DATABASE_URL: 'mysql://schnose:csgo-kz-is-dead-boys@127.0.0.1:8070/cs2kz'
jobs:
test:
name: test suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Start Database
run: |
cp .env.example .env
cp .env.docker.example .env.docker
docker compose up cs2kz-database -d --wait
- uses: Swatinem/rust-cache@v2
- name: cargo test
run: |
cargo test --workspace --locked --all-targets -- --nocapture
cargo test --workspace --locked --all-features --doc -- --nocapture