chore(deps): update dependency @types/react-dom to v18.3.3 (#3477) #6449
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: Build and test | |
on: | |
push: | |
branches-ignore: | |
- release | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use LTS node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- uses: pnpm/action-setup@v3 | |
- name: Get pnpm cache directory path | |
id: nodejs-deps-cache-dir-path | |
run: echo "::set-output name=dir::$(corepack pnpm store path)" | |
- uses: actions/cache@v4 | |
name: Caching Node.js dependencies | |
id: nodejs-deps-cache | |
with: | |
path: ${{ steps.nodejs-deps-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-pnpm-v1-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-v1 | |
- uses: actions/cache@v4 | |
name: Caching Gatsby | |
with: | |
path: .cache | |
key: ${{ runner.os }}-gatsby-cache-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-gatsby-cache | |
- name: Install | |
run: corepack pnpm install --frozen-lockfile | |
- name: Install Playwright Browsers | |
run: corepack pnpm exec playwright install --with-deps | |
- name: Lint | |
run: corepack pnpm lint | |
- name: Build | |
run: corepack pnpm build | |
- name: Test | |
run: corepack pnpm test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
- name: Deploying master branch | |
if: github.ref == 'refs/heads/master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
corepack pnpm run deploy |