diff --git a/.github/workflows/release-plz.yaml b/.github/workflows/release-plz.yaml index 85bd88f..a0378b6 100644 --- a/.github/workflows/release-plz.yaml +++ b/.github/workflows/release-plz.yaml @@ -1,4 +1,4 @@ -name: Release-plz +name: release-plz permissions: pull-requests: write @@ -6,22 +6,19 @@ permissions: on: push: - branches: - - main + branches: ["main"] jobs: release-plz: - name: Release-plz + name: release-plz runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b25703e..d4bcb5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,25 +2,36 @@ name: test on: push: - branches: - - main + branches: ["main"] pull_request: merge_group: jobs: test: + name: test + runs-on: ubuntu-latest env: RUSTC_WRAPPER: sccache - CARGO_INCREMENTAL: 0 - CARGO_HOME: /vol/cargo - runs-on: self-hosted + SCCACHE_GHA_ENABLED: true steps: - name: Check out repository code - uses: actions/checkout@v3 + 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 }} - sccache --zero-stats cargo clippy just ci-test - sccache --show-stats + - name: Upload coverage information + run: | + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} \ No newline at end of file diff --git a/Justfile b/Justfile index 2d7255e..22cf061 100644 --- a/Justfile +++ b/Justfile @@ -7,7 +7,6 @@ _default: ci-test: #!/bin/bash -eux cargo llvm-cov nextest --lcov --output-path coverage.lcov - codecov # Show coverage locally cov: