Skip to content

pataruco is running PR validation #192

pataruco is running PR validation

pataruco is running PR validation #192

Workflow file for this run

name: PR validation
run-name: ${{ github.actor }} is running PR validation
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
paths-ignore:
- 'CHANGELOG.md'
merge_group:
types: [checks_requested]
concurrency:
cancel-in-progress: true
group: '${{ github.workflow }} @ ${{ github.ref }}'
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/prepare
conventional-commits:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set environment and install dependencies
uses: ./.github/actions/prepare
- name: Conventional Commits
uses: ./.github/actions/conventional-commits
lint-format:
name: Linting and formatting
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set environment and install dependencies
uses: ./.github/actions/prepare
- name: Get affected files
uses: ./.github/actions/get-affected-files
- name: Linting and formatting
uses: ./.github/actions/lint-format
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set environment and install dependencies
uses: ./.github/actions/prepare
- name: Get affected files
uses: ./.github/actions/get-affected-files
- name: Run unit tests
uses: ./.github/actions/unit-test
ci-validation:
name: CI validation
needs: [prepare, conventional-commits, lint-format, unit-tests]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Check jobs for errors
uses: actions/github-script@v7
with:
script: |
const checkJobsForErrors = require('./.github/workflows/js/check-for-errors.js');
const jobs = ${{ toJSON(needs) }};
checkJobsForErrors({ core, jobs });