Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
branches:
- feature/*
- hotfix/*
tags-ignore:
- "v*.*.*"
tags-ignore: ["*"]

jobs:
unit_test:
uses: ./.github/workflows/unit-test.yml

sdk_test:
uses: ./.github/workflows/sdk-test.yml
2 changes: 1 addition & 1 deletion .github/workflows/main-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches: [main]
tags-ignore: ["v*.*.*"]
tags-ignore: ["*"]

jobs:
ci:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches: [release/*]
tags-ignore: ["v*.*.*"]
tags-ignore: ["*"]

jobs:
ci:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sdk-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deliver Production to AWS ECR Action
name: Publish React SDK to NPM

on:
workflow_call:
Expand Down Expand Up @@ -35,6 +35,11 @@ jobs:
cd sdk/js/react
npm version $VERSION --no-git-tag-version

- name: Install dependencies
run: |
cd sdk/js/react
npm ci

- name: Build SDK
env:
VERSION: ${{ env.VERSION }}
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/sdk-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build & Test React SDK

on:
workflow_call:

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org/"

- name: Install dependencies
run: |
cd sdk/js/react
npm ci

- name: Build SDK
env:
VERSION: ${{ env.VERSION }}
run: |
cd sdk/js/react
npm run build

- name: Run Unit Tests
run: |
cd sdk/js/react
npm run test
Loading
Loading