chore(deps-dev): bump mermaid from 10.8.0 to 10.9.1 #285
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: Pull request | |
on: pull_request | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
# This job is the originator for determining the list of tasks to be farmed out to a matrix. | |
# This declares the output from the `tasks --list` step | |
outputs: | |
tasks: ${{ steps.tasks.outputs.tasks }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Ensure you check out enough history to allow oneRepo to determine the | |
# merge-base and changed files. `0` will pull all history and should be sufficiently | |
# safe, unless your repo is gigabytes in size | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: yarn | |
# Determine the tasks for the given lifecycle and send them to the github output | |
- uses: paularmstrong/onerepo/actions/get-tasks@main | |
id: tasks # important!: this must match the ID used in the output | |
with: | |
packageManager: yarn | |
lifecycle: pre-merge | |
verbosity: 2 | |
tasks: | |
runs-on: ubuntu-latest | |
needs: setup | |
# A conditional here prevents the job from failing unexpectedly in the rare case | |
# that there are no tasks to run at all. | |
if: ${{ fromJSON(needs.setup.outputs.tasks).parallel != '[]' && fromJSON(needs.setup.outputs.tasks).parallel != '[]' }} | |
strategy: | |
# Run all tasks, even if some fail | |
fail-fast: false | |
matrix: | |
# Because we run all tasks on separate runners, we do not need to worry about | |
# which tasks are parallel or serial – they can all be parallel | |
task: | |
- ${{ fromJSON(needs.setup.outputs.tasks).parallel }} | |
- ${{ fromJSON(needs.setup.outputs.tasks).serial }} | |
name: ${{ join(matrix.task.*.name, ', ') }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: yarn | |
- uses: paularmstrong/onerepo/actions/run-task@main | |
with: | |
task: | | |
${{ toJSON(matrix.task) }} |