Bump @mdn/yari from 1.7.4 to 4.7.2 #7
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: Check scripts | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- package.json | |
- yarn.lock | |
- .github/workflows/pr-check_scripts.yml | |
jobs: | |
up-to-date-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: yarn | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
id: cached-node_modules | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: yarn install | |
if: steps.cached-node_modules.outputs.cache-hit != 'true' | |
run: | | |
yarn --frozen-lockfile | |
- run: yarn up-to-date-check | |
start: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: yarn | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
id: cached-node_modules | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: yarn install | |
if: steps.cached-node_modules.outputs.cache-hit != 'true' | |
run: | | |
yarn --frozen-lockfile | |
- name: yarn start | |
run: yarn start > /tmp/stdout.log 2> /tmp/stderr.log & | |
- name: Wait for server | |
run: | | |
# Just a slight delay to wait until the dev server is ready. | |
sleep 3 | |
curl --retry-connrefused --retry 5 http://localhost:5042 > /dev/null | |
- name: Debug server's stdout and stderr if tests failed | |
if: failure() | |
run: | | |
echo "STDOUT..................................................." | |
cat /tmp/stdout.log | |
echo "" | |
echo "STDERR..................................................." | |
cat /tmp/stderr.log | |
filecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: yarn | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
id: cached-node_modules | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: yarn install | |
if: steps.cached-node_modules.outputs.cache-hit != 'true' | |
run: | | |
yarn --frozen-lockfile | |
- run: yarn filecheck --help | |
content: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: yarn | |
- name: Install all yarn packages | |
run: | | |
yarn --frozen-lockfile | |
- run: yarn content --help | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: yarn | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
id: cached-node_modules | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: yarn install | |
if: steps.cached-node_modules.outputs.cache-hit != 'true' | |
run: | | |
yarn --frozen-lockfile | |
- run: yarn build --help |