Skip to content

build(deps): Bump actions/cache from 4.0.0 to 4.0.1 #110

build(deps): Bump actions/cache from 4.0.0 to 4.0.1

build(deps): Bump actions/cache from 4.0.0 to 4.0.1 #110

Workflow file for this run

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) }}