build(deps): Bump actions/setup-node from 4.0.4 to 4.1.0 #136
Workflow file for this run
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 checks | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 # Enable gitlint to check all PR commit messages | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: ".nvmrc" | |
registry-url: https://registry.npmjs.org | |
- id: python | |
name: Install Python | |
uses: actions/[email protected] | |
with: | |
python-version-file: ".python-version" | |
- name: Cache pip | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: | |
${{ runner.os }}-pip-${{ secrets.CACHE_SEED }}-${{ | |
steps.python.outputs.python-version }}-${{ | |
hashFiles('./poetry.lock') }} | |
restore-keys: | |
${{ runner.os }}-pip-${{ secrets.CACHE_SEED }}-${{ | |
steps.python.outputs.python-version }}- | |
- name: Install Python package manager | |
run: pip install poetry | |
- name: Install Python dependencies | |
run: poetry install --no-root | |
- name: Check all commit messages | |
run: | |
poetry run gitlint --commits origin/${{ github.base_ref }}..${{ | |
github.event.pull_request.head.sha }} | |
- name: Run pre-commit hooks | |
run: poetry run pre-commit run --all-files | |
finalise: | |
name: Finalise pull request workflow | |
if: always() | |
needs: | |
- lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/[email protected] | |
with: | |
jobs: ${{ toJSON(needs) }} |