Merge pull request #260 from Codex-/dependabot/npm_and_yarn/eslint/pl… #977
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: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: asdf-vm/actions/install@v3 | |
- run: pnpm i | |
- name: build | |
run: pnpm run build:types | |
- name: test | |
id: test | |
if: ${{ always() }} | |
run: pnpm run test | |
- name: lint | |
if: ${{ always() }} | |
run: pnpm run lint | |
- name: style | |
if: ${{ always() }} | |
run: pnpm run format:check | |
codecov: # Send only a single coverage report per run | |
needs: [build] | |
timeout-minutes: 15 | |
env: | |
CI: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: asdf-vm/actions/install@v3 | |
- run: pnpm i | |
- name: test | |
run: pnpm run test:coverage | |
- name: codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |