This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Merge pull request #2 from bearcove/release-plz-2024-03-20T14-00-54Z #12
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: test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
merge_group: | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
env: | |
RUSTC_WRAPPER: sccache | |
SCCACHE_GHA_ENABLED: true | |
CARGO_INCREMENTAL: 0 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up sccache (part 1) | |
uses: mozilla-actions/sccache-action@v0.0.3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up sccache (part 2) | |
run: sccache --start-server | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: just,cargo-llvm-cov,cargo-nextest | |
- name: Run tests | |
run: | | |
cd ${{ github.workspace }} | |
cargo clippy | |
just ci-test | |
- name: Upload coverage information | |
run: | | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov |