name: ci on: push: branches: - master pull_request: branches: - master jobs: unit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 18 - name: install root-deps run: | npm i npm i -g lerna - name: build run: npm run build - name: units run: npm run unit env: CI: true linters: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: actions/setup-node@v3 with: node-version: 18 - name: install root-deps run: npm i --ignore-scripts - name: commitlint run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose - name: eslint run: npm run lint