build(deps-dev): bump prettier from 2.7.1 to 3.1.1 #187
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: PR | |
on: | |
pull_request: | |
branches: [trunk] | |
types: [opened, synchronize, reopened] | |
paths-ignore: | |
- 'microsite/**' | |
jobs: | |
lint-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Ignore draft pull requests | |
if: github.event.pull_request.draft | |
run: exit | |
- name: setup node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
# Cache every node_modules folder inside the monorepo | |
- name: cache all node_modules | |
id: cache-modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
# We use both yarn.lock and package.json as cache keys to ensure that changes to local monorepo packages bust the cache. | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock', '**/package.json') }} | |
- name: find location of global yarn cache | |
id: yarn-cache | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: cache global yarn cache | |
uses: actions/cache@v3 | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: yarn install | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
run: yarn | |
- name: lint | |
run: yarn lint | |
- name: test and upload coverage | |
run: yarn test | |