stop using node 16 in pipelines / clear other pipeline warnings #97
Workflow file for this run
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: create-spectacle | |
env: | |
PNPM_STORE_PATH: '' | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/create-spectacle.yml' | |
- 'packages/create-spectacle/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/create-spectacle.yml' | |
- 'packages/create-spectacle/**' | |
jobs: | |
build: | |
name: Create, build, and install | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
create-type: ['tsx', 'onepage'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Wireit cache | |
- uses: google/wireit@setup-github-actions-caching/v1 | |
- uses: pnpm/action-setup@v3 | |
name: Install pnpm | |
with: | |
run_install: false | |
version: 7 | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: Setup pnpm cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.PNPM_STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Copy Spectacle package | |
run: pnpm run --filter ./packages/create-spectacle copy-spectacle-package | |
- name: Build create-spectacle | |
run: pnpm run --filter ./packages/create-spectacle build | |
# Create, build, isntall a full example. | |
# Then, start a background dev server. | |
- name: Create example - ${{ matrix.create-type }} | |
working-directory: ./packages/create-spectacle | |
run: pnpm run examples:${{ matrix.create-type }}:create | |
- name: Install example - ${{ matrix.create-type }} | |
working-directory: ./packages/create-spectacle | |
run: pnpm run examples:${{ matrix.create-type }}:install | |
- name: Build example - ${{ matrix.create-type }} | |
working-directory: ./packages/create-spectacle | |
run: pnpm run examples:${{ matrix.create-type }}:build | |
# Wait until the dev server is full up and running and then test. | |
- name: Start and test example - ${{ matrix.create-type }} | |
working-directory: ./packages/create-spectacle | |
run: | | |
pnpm run examples:${{ matrix.create-type }}:start & \ | |
pnpm exec wait-on http-get://localhost:3000 && \ | |
pnpm run examples:test |