diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index c840480..0000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Web Kit SDK Build & Test - -on: pull_request - -jobs: - build-and-test: - name: Build and Test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: NPM install - uses: actions/setup-node@v4 - with: - node-version: 20.x - - - name: Run NPM CI - run: npm ci - - - name: Build Files - run: npm run build - - - name: Run Core tests - run: npm run test - - - name: Archive npm failure logs - uses: actions/upload-artifact@v4 - if: failure() - with: - name: npm-logs - path: ~/.npm/_logs diff --git a/.github/workflows/reusable-workflows.yml b/.github/workflows/reusable-workflows.yml index a733811..765b113 100644 --- a/.github/workflows/reusable-workflows.yml +++ b/.github/workflows/reusable-workflows.yml @@ -1,15 +1,18 @@ name: Reusable Workflows on: - pull_request: + pull_request: jobs: - pr-branch-check-name: - name: Check PR for semantic branch name - uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-check-name.yml@stable - pr-title-check: - name: Check PR for semantic title - uses: mParticle/mparticle-workflows/.github/workflows/pr-title-check.yml@stable - pr-branch-target-gitflow: - name: Check PR for semantic target branch - uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-target-gitflow.yml@stable + web-kit-pull-request: + name: Run Web Kit PR Workflow + uses: mParticle/mparticle-workflows/.github/workflows/web-kit-pull-request.yml@370b52b2c5b6e6b0b74e88062da8f44603260b13 + pr-branch-check-name: + name: Check PR for semantic branch name + uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-check-name.yml@stable + pr-title-check: + name: Check PR for semantic title + uses: mParticle/mparticle-workflows/.github/workflows/pr-title-check.yml@stable + pr-branch-target-gitflow: + name: Check PR for semantic target branch + uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-target-gitflow.yml@stable diff --git a/package.json b/package.json index 10915d0..1aa084f 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "build": "ENVIRONMENT=production rollup --config rollup.config.js", "build:test": "rollup --config rollup.test.config.js", + "lint": "eslint src/ test/src/", "watch": "ENVIRONMENT=production rollup --config rollup.config.js -w", "test": "npm run build && npm run build:test && DEBUG=false karma start test/karma.config.js", "test:debug": "npm run build && npm run build:test && DEBUG=true karma start test/karma.config.js",