| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- name: Build and Test
- on:
- pull_request:
- branches: [master]
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Setup Node.js
- uses: actions/setup-node@v1
- with:
- node-version: 18.x
- - name: Setup Corepack
- run: corepack enable
- - name: Install dependencies
- env:
- YARN_ENABLE_IMMUTABLE_INSTALLS: false
- run: yarn install
- - name: Check Typescript
- run: npm run tsc
- - name: Check ESLint
- run: npm run eslint
- - name: Check Prettier
- run: npm run format
- - name: Run unit tests
- run: npm run test
- - name: Install production dependencies
- run: |
- rm -rf node_modules
- yarn workspaces focus --all --production
- - name: Build
- env:
- NODE_OPTIONS: "--openssl-legacy-provider"
- run: npm run build
|