-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dc24be
commit 5b7890d
Showing
3 changed files
with
52 additions
and
5 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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
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,42 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# setup | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup | ||
|
||
- name: Install more cargo tools | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-llvm-cov,cargo-nextest | ||
|
||
# test | ||
- name: Run tests and generate coverage | ||
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info nextest --profile ci | ||
|
||
- uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
check_name: test | ||
report_paths: "**/junit.xml" | ||
|
||
# lint | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features -- -D warnings | ||
name: lint | ||
if: always() | ||
|
||
# coverage | ||
- name: Upload coverage to Coveralls | ||
uses: coverallsapp/github-action@v2.0.0 | ||
if: always() | ||
|