Skip to content

πŸ”„ synced local '.github/workflows/' with remote 'workflows/' (#128) #182

πŸ”„ synced local '.github/workflows/' with remote 'workflows/' (#128)

πŸ”„ synced local '.github/workflows/' with remote 'workflows/' (#128) #182

Workflow file for this run

name: '[CI/CD] CI Pipeline'
on: # Test pull requests and any push to main.
push:
branches:
- main
pull_request:
branches:
- main
permissions: # Force read permissions
contents: read
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
with:
node-version: '22.x'
- name: Cache dependencies
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- id: markdownlint
name: Install mardownlint
run: npm install -g markdownlint-cli
- id: npm-ci
name: Clean install
run: npm ci
- name: Linters
run: |
npm run lint
markdownlint *.md **/*.md
- name: Tests
#Β Run tests if linter fails
if: always() && steps.npm-ci.outcome == 'success'
run: npm run test-ci