Skip to content

Feature/help page translations #433

Feature/help page translations

Feature/help page translations #433

Workflow file for this run

name: PR CI
on:
pull_request:
branches: [ "main", "test" ]
jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
api: ${{ steps.changes.outputs.api }}
ui: ${{ steps.changes.outputs.ui }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
api:
- 'src/API/**'
- '.github/**'
ui:
- 'src/UI/**'
- '.github/**'
build-api:
name: Build & Test API
needs: detect-changes
if: needs.detect-changes.outputs.api == 'true'
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/API
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install packages
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
skip-api:
name: Skip Build - No API Changes
if: needs.detect-changes.outputs.api != 'true'
needs: detect-changes
runs-on: ubuntu-latest
steps:
- run: echo "No API changes. Skipping API build."
build-ui:
name: Build & Test UI
needs: detect-changes
if: needs.detect-changes.outputs.ui == 'true'
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/UI
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install packages
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
skip-ui:
name: Skip Build - No UI Changes
if: needs.detect-changes.outputs.ui != 'true'
needs: detect-changes
runs-on: ubuntu-latest
steps:
- run: echo "No UI changes. Skipping UI build."