kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
41 wiersze
959 B
YAML
41 wiersze
959 B
YAML
name: CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test Node.js ${{ matrix.node-version }}
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
node-version:
|
|
- 22
|
|
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
|
|
|
|
- name: Cache turbo build setup
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .turbo
|
|
key: ${{ runner.os }}-node-${{ matrix.node-version }}-turbo-${{ github.sha }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-${{ matrix.node-version }}-turbo-
|
|
|
|
- run: pnpm build
|
|
- run: pnpm test
|