Skip to content

Merge pull request #22 from osu-tournament-rating/hotfix/fix-clippy-w… #11

Merge pull request #22 from osu-tournament-rating/hotfix/fix-clippy-w…

Merge pull request #22 from osu-tournament-rating/hotfix/fix-clippy-w… #11

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ "master" ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
name: Clippy
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run clippy
run: cargo clippy --all-features --all-targets
rustfmt:
name: Format
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
toolchain: nightly
- name: Check code formatting
run: cargo fmt -- --check
test:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create .env
run: echo ${{ secrets.DEV_ENV }} > .env
- name: Test
run: cargo test