Skip to content

chore(deps): update actions/setup-node digest to eff380d #19

chore(deps): update actions/setup-node digest to eff380d

chore(deps): update actions/setup-node digest to eff380d #19

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
run-test:
timeout-minutes: 10
runs-on: ubuntu-22.04
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: minute_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Setup pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
- name: Setup node.js
uses: actions/setup-node@eff380dfbcf941bf8832e4acb788cebe13dfd758
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