Skip to content

feat: implement subject pattern #344

feat: implement subject pattern

feat: implement subject pattern #344

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
jobs:
build-lint-test:
name: Build, Lint, and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm run test:run
is-bundled:
name: Check if bundled
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check if bundled
run: |
if [ ! -f dist/index.js ]; then
echo "The project is not bundled. Please run the build step.";
exit 1;
fi
- name: Check if dist/index.js is updated in PR
run: |
git fetch origin ${{ github.base_ref }}
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^dist/index.js$'; then
echo "dist/index.js was not updated in this PR. Please update the bundle.";
exit 1;
fi