fix: fix ci scripts issue #3
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-lib | |
on: | |
push: | |
branches: | |
- main | |
- major | |
- minor | |
- dev | |
# Only consider those paths to trigger the action | |
paths: | |
- 'packages/**' | |
- 'package.json' | |
- '*.lock' | |
- '.yarnrc.yml' | |
- 'tsconfig.base.json' | |
- '.prettier*' | |
- '.github/**' | |
pull_request: | |
branches: | |
- main | |
- major | |
- minor | |
- dev | |
types: | |
- opened | |
- synchronize | |
- reopened | |
# Only consider those paths to trigger the action | |
paths: | |
- 'packages/**' | |
- 'package.json' | |
- '*.lock' | |
- '.yarnrc.yml' | |
- 'tsconfig.base.json' | |
- '.prettier*' | |
- '.github/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 📥 Monorepo install | |
uses: ./.github/actions/yarn-nm-install | |
- name: Typecheck | |
working-directory: ./ | |
run: | | |
yarn typecheck | |
- name: Linter | |
working-directory: ./ | |
run: | | |
yarn lint | |
- name: Unit tests | |
working-directory: ./ | |
run: | | |
yarn test | |
- name: Build lib-path-alias | |
working-directory: ./ | |
run: | | |
yarn build |