ci: rename ci job name to be more suitable #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: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- dev | |
- main | |
push: | |
branches: | |
- dev | |
- main | |
tags: | |
- v* | |
concurrency: # only one job can be run in one PR | |
group: ${{ github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
name: Test and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.17.1' | |
- name: Setup pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint | |
run: pnpm run lint | |
- name: Unit test | |
run: pnpm run test | |
- name: E2E test | |
run: pnpm run test:e2e | |
- name: Build | |
run: pnpm run build |