-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from alecdotninja/alecdotninja-github-actions
Setup Github Actions
- Loading branch information
Showing
3 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -Dwarnings | ||
|
||
jobs: | ||
bench: | ||
name: ⏱️ Benchmark | ||
runs-on: ubuntu-latest | ||
|
||
needs: | ||
- build | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/[email protected] | ||
- name: Run benchmarks | ||
run: cargo bench --all | ||
|
||
build: | ||
name: 🔨 Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/[email protected] | ||
- name: Build (release) | ||
run: cargo build --all --release | ||
|
||
fmt: | ||
name: ✨ Check Formatting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/[email protected] | ||
- name: Run Rustfmt | ||
run: cargo fmt --all -- --check | ||
|
||
lint: | ||
name: 🧹 Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/[email protected] | ||
- name: Run Clippy | ||
run: cargo clippy --all | ||
|
||
test: | ||
name: 🧪 Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/[email protected] | ||
- name: Run tests | ||
run: cargo test --all |
This file was deleted.
Oops, something went wrong.
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