Skip to content

Commit

Permalink
Create develop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kenken714 authored Aug 27, 2024
1 parent a718179 commit 9e355af
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI (main)

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"


jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build test
run: cargo build --release --verbose
- name: Run test
run: cargo test --verbose
- name: Lint with clippy
run: cargo clippy --all-targets --all-features
- name: Check formatting
run: cargo fmt --all --check

0 comments on commit 9e355af

Please sign in to comment.