chore: Update combine-prs.yml in flac-tracksplit #60
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" | |
# This workflow is triggered on all pushes to the repository, or on Friday night. | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
- staging | |
- trying | |
schedule: | |
- cron: '0 23 * * FRI' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust_toolchain: [nightly, stable] | |
cargo_args: | |
- "" | |
# - "--no-default-features --features no_std" | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust_toolchain }} | |
override: true | |
profile: minimal | |
- name: "cargo test" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: ${{ matrix.cargo_args }} | |
toolchain: ${{ matrix.rust_toolchain }} | |
all_tests: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Mark the job as a success | |
run: exit 0 | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: "cargo fmt" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: "-v -- --check" | |
cargo_deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: "cargo deny" | |
uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
command: "check all" | |
cargo_clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: "cargo clippy" | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
# cargo_bench: | |
# runs-on: ubuntu-latest | |
# if: github.event_name == 'pull_request' | |
# needs: test | |
# steps: | |
# - uses: actions/[email protected] | |
# - name: "cargo bench" | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: bench |