Skip to content

Bump actions/checkout from 4.1.7 to 4.2.2 (#2557) #966

Bump actions/checkout from 4.1.7 to 4.2.2 (#2557)

Bump actions/checkout from 4.1.7 to 4.2.2 (#2557) #966

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 / main
on:
push:
branches: [main]
jobs:
precheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Enable corepack to fix https://github.com/actions/setup-node/pull/901
run: corepack enable pnpm
- name: Use Node.js LTS (20.x)
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: 20.x
cache: 'pnpm'
- name: Install project dependencies
run: corepack pnpm install --frozen-lockfile
- name: Run exercism/javascript ci precheck (checks config, lint code, and runs tests) for all exercises
run: corepack pnpm node scripts/ci-check.mjs
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- 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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install project dependencies
run: corepack pnpm install --frozen-lockfile
- name: Run exercism/javascript ci (checks config, lint code, and runs tests) for all exercises
run: corepack pnpm node scripts/ci.mjs