feat: update Team, Formula enums #104
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: Rust | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["*"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Dependencies Ubuntu | |
if: ${{contains(runner.os,'Linux')}} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends ncurses-dev libncursesw5-dev libgtk-3-dev | |
- name: Install Dependencies Mac | |
if: ${{contains(runner.os,'macOS')}} | |
run: | | |
brew install cairo gtk+3 | |
rustup component add rustfmt clippy --toolchain stable-x86_64-apple-darwin | |
- name: Lint | |
run: | | |
cargo fmt -- --check | |
cargo clippy -- -D warnings | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |