Skip to content

Some bugs in the application is fixed #34

Some bugs in the application is fixed

Some bugs in the application is fixed #34

Workflow file for this run

# This workflow will build PRs submitted to the master branch.
name: 👷 PR Builder
on:
pull_request:
types: [ opened, synchronize, labeled ]
branches: [ main ]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:
# Avoid running multiple builds for the same PR.
concurrency:
group: pr-builder-${{ github.ref }}
cancel-in-progress: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
lint:
name: ⬣ ESLint (STATIC ANALYSIS)
if: ${{ github.event_name == 'pull_request' || github.event.label.name == 'trigger-pr-builder' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ lts/* ]
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: 🟢 Setup node
id: setup-node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: 🧩 Install Dependencies
run: npm ci # Recommended for CI environments
- name: 🦄 Lint Changed Files
working-directory: .github/workflows
run: |
bash ./scripts/lint-changes.sh ${{ github.event.pull_request.number }}
build:
name: 🚧 Build
needs: [ lint ]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ lts/* ]
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: 🟢 Setup node
id: setup-node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: 🧩 Install Dependencies
run: |
rm -rf node_modules
rm -rf package-lock.json
npm cache clean --force
npm install
- name: 👷 Build
run: npm run build # Assumes you have a build script in package.json