Skip to content

Cache some deserialisations #398

Cache some deserialisations

Cache some deserialisations #398

Workflow file for this run

name: PR commands
# Commands that can be run via a comment on the PR.
# Comment `!pr <command-name>` to trigger them.
# See config/pr-commands.json for configuration
# Use `!pr help` for help
#
# See https://github.com/Siteimprove/pr-command
on:
issue_comment:
types: [created]
jobs:
pull-request-command:
runs-on: ubuntu-latest
steps:
- name: "Should pr command run?"
id: should-run
uses: siteimprove/pr-command/check-run/check@v2.4
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.A11Y_PUBLIC_GITHUB_TOKEN }}
# The repository has been checked out by PR commands!
- name: "Set up Node"
if: env.PR_COMMAND_WILL_RUN == 'true'
uses: actions/setup-node@v4
with:
# We use versions 18 and 20 in the integrate workflow
node-version: 18
- name: "Install dependencies"
if: env.PR_COMMAND_WILL_RUN == 'true'
run: yarn install --immutable
- name: "React to command"
uses: siteimprove/pr-command/check-run/run@v2.4
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.A11Y_PUBLIC_GITHUB_TOKEN }}