Add GitHub Actions for continuous integration #75
Workflow file for this run
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
# name: UI - Install, Lint and Test | |
# on: | |
# push: | |
# branches: main | |
# pull_request: | |
# paths: | |
# - 'packages/ui/**' | |
# - '!examples/**' | |
# - '!packages/react/**' | |
# - '!packages/sdk/**' | |
# - '!storybook/**' | |
# jobs: | |
# build: | |
# runs-on: ubuntu-22.04 | |
# defaults: | |
# run: | |
# working-directory: packages/ui/ | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
# with: | |
# ref: ${{ github.head_ref }} | |
# - 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 |