Skip to content

chore: separate install tests #118

chore: separate install tests

chore: separate install tests #118

Workflow file for this run

name: Install
on:
pull_request:
paths:
- '.github/workflows/install.yml'
- 'package.json'
- 'scripts/**'
push:
branches:
- main
paths:
- '.github/workflows/install.yml'
- 'package.json'
- 'scripts/**'
jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
jq -c '.version = "1.28.0"' package.json > tmp.$$.json
mv tmp.$$.json package.json
npm pack
- uses: actions/upload-artifact@v3
with:
name: installer
path: supabase-1.28.0.tgz
npm:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v3
with:
name: installer
- run: npm init -y
- run: npm i --save-dev ./supabase-1.28.0.tgz
- run: npx --no-install supabase --version
yarn:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v3
with:
name: installer
- run: yarn set version berry
- run: yarn init
- run: yarn add -D ./supabase-1.28.0.tgz
- run: yarn supabase --version
pnpm:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v3
with:
name: installer
- run: npm install -g pnpm
- run: pnpm init
- run: pnpm i --save-dev ./supabase-1.28.0.tgz
- run: pnpm supabase --version
bun:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v3
with:
name: installer
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: echo '{"trustedDependencies": ["supabase"]}' > package.json

Check failure on line 98 in .github/workflows/install.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/install.yml

Invalid workflow file

You have an error in your yaml syntax on line 98
- run: bun add -D ./supabase-1.28.0.tgz
- run: bunx supabase --version