WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Bump js-yaml from 3.14.1 to 3.14.2 in /exercises/practice/game-of-life #3819

Bump js-yaml from 3.14.1 to 3.14.2 in /exercises/practice/game-of-life

Bump js-yaml from 3.14.1 to 3.14.2 in /exercises/practice/game-of-life #3819

Workflow file for this run

# This workflow will do a clean install of node dependencies and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: javascript / pr
on: pull_request
jobs:
precheck:
runs-on: ubuntu-24.04
steps:
- name: Checkout PR
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
- name: Get changed files
id: changed-files
run: |
if ${{ github.event_name == 'pull_request' }}; then
echo "changed_files=$(git diff --name-only --diff-filter=ACM -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
else
echo "changed_files=$(git diff --name-only --diff-filter=ACM ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
fi
- name: Enable corepack to fix https://github.com/actions/setup-node/pull/901
run: corepack enable pnpm
- name: Use Node.js LTS (22.x)
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
with:
node-version: 22.x
cache: 'pnpm'
- name: Install project dependencies
run: corepack pnpm install --frozen-lockfile
- name: Run exercism/javascript ci precheck (stub files, config integrity) for changed exercises
run: corepack pnpm node scripts/pr.mjs ${{ steps.changed-files.outputs.changed_files }}
ci:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [22.x]
steps:
- name: Checkout PR
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
- name: Get changed files
id: changed-files
run: |
if ${{ github.event_name == 'pull_request' }}; then
echo "changed_files=$(git diff --name-only --diff-filter=ACM -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
else
echo "changed_files=$(git diff --name-only --diff-filter=ACM ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
fi
- name: Enable corepack to fix https://github.com/actions/setup-node/pull/901
run: corepack enable pnpm
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install project dependencies
run: corepack pnpm install --frozen-lockfile
- name: Run exercism/javascript ci (runs tests) for changed/added exercises
run: corepack pnpm node scripts/pr.mjs ${{ steps.changed-files.outputs.changed_files }}