add exports #19
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: CI | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Build nivo packages | |
run: make pkgs-build | |
- run: make pkgs-lint | |
- run: make pkgs-test | |
# Make sure that we can build the website | |
- run: make website-build | |
# Make sure that we can build storybook | |
- run: make storybook-build | |
end-to-end-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'pnpm' | |
- name: Cypress install | |
uses: cypress-io/github-action@v5 | |
with: | |
runTests: false | |
- name: Build nivo packages | |
run: make pkgs-build | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
component: true | |
command: make end-to-end-test |