Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
MicicFilip committed Jul 22, 2024
1 parent c939779 commit ba491e6
Show file tree
Hide file tree
Showing 13 changed files with 730 additions and 63 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: SDK Lint, Tests and Publish

on:
pull_request:
paths:
- 'packages/sdk/**'
paths-ignore:
- '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@v4 # TODO: SHA commit instead of version

- name: Setup Node version
uses: actions/setup-node@v4 # TODO: SHA commit instead of version
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

# TODO: NPM publish.
41 changes: 41 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: UI Lint, Tests and Publish

on:
pull_request:
paths:
- 'packages/ui/**'
paths-ignore:
- '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@v4 # TODO: SHA commit instead of version

- name: Setup Node version
uses: actions/setup-node@v4 # TODO: SHA commit instead of version
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: Tests
run: npm run test

# TODO: NPM publish.
Loading

0 comments on commit ba491e6

Please sign in to comment.