chore(deps): bump actions/upload-artifact from 4 to 5 #1008
This file contains hidden or 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: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '**.rs' | |
| - rust-toolchain.toml | |
| - flake.nix | |
| - Cargo.lock | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: syndicationd | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - run: nix develop .#ci --accept-flake-config --command just check | |
| coverage: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: syndicationd | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Generate code coverage | |
| run: nix build .#coverage --accept-flake-config --print-build-logs | |
| - name: Upload coverage to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: result | |
| dependabot-auto-merge: | |
| if: ${{ github.actor == 'dependabot[bot]' }} | |
| runs-on: ubuntu-latest | |
| needs: [tests] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - id: meta | |
| uses: dependabot/fetch-metadata@v2 | |
| # merge this PR if update is a semver patch | |
| - if: ${{ steps.meta.outputs.update-type == 'version-update:semver-patch' }} | |
| run: | | |
| gh pr review "${GITHUB_HEAD_REF}" --approve | |
| gh pr merge "${GITHUB_HEAD_REF}" --squash --auto |