docs: main page #40
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: CI | |
on: | |
push: | |
branches: [main, beta] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
command: | |
[ | |
'yarn workspace overlay-kit run test', | |
'yarn workspace overlay-kit run test:attw', | |
'yarn workspace overlay-kit run test:publint', | |
'yarn lint', | |
'yarn workspace @overlay-kit/framer-motion-react-16 run build', | |
'yarn workspace @overlay-kit/framer-motion-react-17 run build', | |
'yarn workspace @overlay-kit/framer-motion-react-18 run build', | |
'yarn workspace @overlay-kit/framer-motion-react-19 run build', | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn install | |
- name: Build Package | |
run: yarn workspace overlay-kit run build | |
- name: Run command | |
run: ${{ matrix.command }} | |
- if: matrix.command == 'yarn workspace overlay-kit run test' | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |