Merge pull request #318 from davide125/bucket2 #145
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
name: "CI" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Check code formatting | |
# Only check code formatting on pull requests | |
if: "github.event_name == 'pull_request'" | |
run: cargo fmt -- --check | |
- name: Cargo build | |
run: cargo build --all-features | |
- name: Cargo test | |
run: cargo test |