Feat/tests-services #80
Workflow file for this run
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: Run CI checks before PR to dev branch | |
on: | |
pull_request: | |
branches: ["dev"] | |
jobs: | |
ci-dev: | |
environment: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install dependencies with pnpm | |
run: | | |
corepack enable | |
pnpm i | |
- name: Check types with TypeScript | |
run: pnpm check-types | |
- name: Lint with ESLint | |
run: pnpm lint | |
- name: Check format with Prettier | |
run: pnpm check-format | |
- name: Run unit tests with Vitest | |
run: pnpm test:unit | |
env: | |
PROJECT_URL: ${{vars.PROJECT_URL}} | |
MONGODB_URL: ${{secrets.MONGODB_URL}} | |
PASSWORD_PEPPER: ${{secrets.PASSWORD_PEPPER}} | |
SEND_EMAIL: ${{vars.SEND_EMAIL}} |