Skip to content

Commit

Permalink
ci: Create web-kit-pull-request.yml (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexs-mparticle authored Jul 16, 2024
1 parent 40691f2 commit 759d833
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/web-kit-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Web Kit Build & Test

on:
workflow_call:
pull_request:
types: [opened, reopened, synchronize, edited]

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: Run NPM CI
run: npm run lint

- 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

0 comments on commit 759d833

Please sign in to comment.