chore(deps): update github/codeql-action digest to f09c1c0 (#145) #418
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
run-test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-24.04 | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: minute_test | |
ports: | |
- 5433:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Prepare env files | |
run: | | |
cp packages/prisma/.env.test.sample packages/prisma/.env.test | |
cp packages/services/.env.test.sample packages/services/.env.test | |
cp packages/trpc/.env.test.sample packages/trpc/.env.test | |
cp apps/web/.env.test.sample apps/web/.env.test | |
- name: Run unit tests | |
run: pnpm test:unit |