From 370b52b2c5b6e6b0b74e88062da8f44603260b13 Mon Sep 17 00:00:00 2001 From: Alex S <49695018+alexs-mparticle@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:05:43 -0400 Subject: [PATCH 1/4] ci: Create web-kit-pull-request.yml --- web/web-kit-pull-request.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 web/web-kit-pull-request.yml diff --git a/web/web-kit-pull-request.yml b/web/web-kit-pull-request.yml new file mode 100644 index 0000000..f2435c1 --- /dev/null +++ b/web/web-kit-pull-request.yml @@ -0,0 +1,35 @@ +name: Web Kit 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: 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 From 133967e56e8d07260f1736c3104349881a9ced66 Mon Sep 17 00:00:00 2001 From: Alex S <49695018+alexs-mparticle@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:27:09 -0400 Subject: [PATCH 2/4] Move web-kit-pull-request.yml --- {web => workflows}/web-kit-pull-request.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {web => workflows}/web-kit-pull-request.yml (100%) diff --git a/web/web-kit-pull-request.yml b/workflows/web-kit-pull-request.yml similarity index 100% rename from web/web-kit-pull-request.yml rename to workflows/web-kit-pull-request.yml From 0b36e060bbfd707815e409f3100860740f8803b9 Mon Sep 17 00:00:00 2001 From: Alex S <49695018+alexs-mparticle@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:27:38 -0400 Subject: [PATCH 3/4] Move web-kit-pull-request.yml --- {workflows => .github/workflows}/web-kit-pull-request.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {workflows => .github/workflows}/web-kit-pull-request.yml (100%) diff --git a/workflows/web-kit-pull-request.yml b/.github/workflows/web-kit-pull-request.yml similarity index 100% rename from workflows/web-kit-pull-request.yml rename to .github/workflows/web-kit-pull-request.yml From b3446a637dd99663bb0b11ac8a2e4f662d7b39ec Mon Sep 17 00:00:00 2001 From: Alex S <49695018+alexs-mparticle@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:28:43 -0400 Subject: [PATCH 4/4] Update web-kit-pull-request.yml --- .github/workflows/web-kit-pull-request.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/web-kit-pull-request.yml b/.github/workflows/web-kit-pull-request.yml index f2435c1..9a0961c 100644 --- a/.github/workflows/web-kit-pull-request.yml +++ b/.github/workflows/web-kit-pull-request.yml @@ -1,6 +1,9 @@ name: Web Kit Build & Test -on: pull_request +on: + workflow_call: + pull_request: + types: [opened, reopened, synchronize, edited] jobs: build-and-test: