-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
930b57e
commit e066a4b
Showing
21 changed files
with
792 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: React - Install and Tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'packages/react/**' | ||
- '!examples/**' | ||
- '!packages/sdk/**' | ||
- '!packages/ui/**' | ||
- '!storybook/**' | ||
|
||
jobs: | ||
react: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
working-directory: packages/react/ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
# TODO: Remove right before merge. | ||
with: | ||
ref: 'feature/github-actions' | ||
|
||
- name: Setup Node version | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | ||
with: | ||
node-version-file: '.nvmrc' # Root of the repository. | ||
|
||
# TODO: NPM login instead of auth token? | ||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: Tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: SDK - Install, Lint and Test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'packages/sdk/**' | ||
- '!examples/**' | ||
- '!packages/react/**' | ||
- '!packages/ui/**' | ||
- '!storybook/**' | ||
|
||
jobs: | ||
sdk: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
working-directory: packages/sdk/ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
# TODO: Remove right before merge. | ||
with: | ||
ref: 'feature/github-actions' | ||
|
||
- name: Setup Node version | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | ||
with: | ||
node-version-file: '.nvmrc' # Root of the repository. | ||
|
||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: Lint check | ||
run: npm run lint | ||
|
||
- name: Tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Storybook - Install, Lint, Build and Deploy | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'storybook/**' | ||
- '!examples/**' | ||
- '!packages/react/**' | ||
- '!packages/sdk/**' | ||
- '!packages/ui/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
working-directory: storybook/ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
# TODO: Remove right before merge. | ||
with: | ||
ref: 'feature/github-actions' | ||
|
||
- name: Setup Node version | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | ||
with: | ||
node-version-file: '.nvmrc' # Root of the repository. | ||
|
||
# TODO: NPM login instead of auth token? | ||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: Lint check | ||
run: npm run lint | ||
|
||
- name: Build | ||
run: npm run build-storybook | ||
|
||
- name: Upload pages artifact | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
id: upload-pages-artifact | ||
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa | ||
with: | ||
name: storybook | ||
path: storybook/storybook-static/ | ||
retention-days: 90 | ||
|
||
deploy: | ||
needs: build | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
id-token: write | ||
pages: write | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e | ||
with: | ||
artifact_name: storybook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: UI - Install, Lint and Test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'packages/ui/**' | ||
- '!examples/**' | ||
- '!packages/react/**' | ||
- '!packages/sdk/**' | ||
- '!storybook/**' | ||
|
||
jobs: | ||
ui: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
working-directory: packages/ui/ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
# TODO: Remove right before merge. | ||
with: | ||
ref: 'feature/github-actions' | ||
|
||
- name: Setup Node version | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
# TODO: NPM login instead of auth token? | ||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: Lint check | ||
run: npm run lint | ||
|
||
- name: Tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.vscode/ | ||
|
||
node_modules/ | ||
coverage/ | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.