Skip to content

stop using node 16 in pipelines / clear other pipeline warnings #734

stop using node 16 in pipelines / clear other pipeline warnings

stop using node 16 in pipelines / clear other pipeline warnings #734

Workflow file for this run

name: CI
env:
PNPM_STORE_PATH: ''
# Runs build and test on:
# every push that has a change in a file not in the docs folder
# every pull request with main branch as the base that has a change
# in a file not in the docs folder
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Check and build codebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
# 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
shell: bash
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
# If you hare having issues post-merge with wireit improperly caching,
# comment this out, push a commit, then re-comment.
# - name: Clear all caches
# run: pnpm clean:cache
- name: Build Code and Examples
run: pnpm run build
# We build in-source files like `examples/one-page/index.html`.
# This check ensures we don't build changes that need committing.
- name: Check generated in-source files
run: git diff --no-ext-diff --quiet --exit-code
- name: Check Code
run: pnpm run check:ci