fix: typo #615
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: Smoketest | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
NODE_VERSION: 20.x | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
name: Verify formatting | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Verify formatting | |
run: yarn format:check | |
build: | |
name: Build site | |
runs-on: ubuntu-latest | |
needs: [formatting] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Restore Gatsby build output | |
uses: actions/cache@v3 | |
id: gatsbyOut | |
with: | |
path: ./public | |
key: ${{ runner.os }}-gatsby-out-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-gatsby-out-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }} | |
${{ runner.os }}-gatsby-out-${{ secrets.CACHE_VERSION }}- | |
- name: Build site | |
run: yarn build:ci |