Skip to content

Bump the github-actions-dependencies group with 5 updates #121

Bump the github-actions-dependencies group with 5 updates

Bump the github-actions-dependencies group with 5 updates #121

Workflow file for this run

name: pr
on:
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changed-files:
name: changed-files
runs-on: ubuntu-slim
outputs:
src: ${{ steps.changed-files-yaml.outputs.src_any_changed }}
steps:
- uses: actions/checkout@v5
with:
submodules: true
- id: changed-files-yaml
uses: tj-actions/changed-files@v47
with:
files_yaml: |
src:
- CMakeLists.txt
- '**/CMakeLists.txt'
- '**/*.hpp'
- '**/*.cpp'
test:
needs: changed-files
if: ${{ needs.changed-files.outputs.src == 'true' }}
name: test-on-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-build
- run: cargo make build
- run: cargo make test
all-tests-passed:
if: ${{ always() }}
name: all-tests-passed
runs-on: ubuntu-slim
needs: test
steps:
- if: ${{ needs.test.result == 'failure' || needs.test.result == 'cancelled' }}
run: exit 1
auto-merge:
needs:
- all-tests-passed
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-slim
if: ${{ always() && !cancelled() && !failure() && github.actor == 'dependabot[bot]' }}
steps:
- run: gh pr merge --rebase --auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}