Files
itzmineydev/.github/workflows/ci.yml
T
Michael eec81a7b67 Update CI workflow to limit PR paths
Restrict CI workflow to specific paths on PR events.
Remove unnecessary runs on push events as it is a required status check before PRs can be pushed into master anyways
2026-01-28 21:48:39 +01:00

37 lines
655 B
YAML

name: CI
on:
pull_request:
branches: [ master ]
paths:
- "src/**"
- "scripts/**"
- "angular.json"
- "tsconfig*.json"
- "package.json"
- "package-lock.json"
- ".github/workflows/**"
- "public/i18n/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24.13.0
cache: npm
- run: npm i -g npm@11.8.0
- run: npm --version
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present