Skip to content

Try pnpm-node equivalent #11

Try pnpm-node equivalent

Try pnpm-node equivalent #11

Workflow file for this run

name: Test
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: testdb
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
# Bun
# - uses: oven-sh/setup-bun@v1
# - name: Install turbo globally
# run: bun -g add turbo
# - name: Install packages
# run: bun install
# -
# Pnpm
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install turbo
run: pnpm -g add turbo
- name: Install dependencies
run: pnpm install
# -
- name: Set environment variables
run: |
echo "PG_DATABASE_URL=postgres://postgres:[email protected]:5432/testdb" >> $GITHUB_ENV
echo "MYSQL_DATABASE_URL=mysql://root:[email protected]:3306/testdb" >> $GITHUB_ENV
- name: Test
run: turbo test