Skip to content

Bump actions/checkout from 6.0.1 to 6.0.2 (#2815) #1155

Bump actions/checkout from 6.0.1 to 6.0.2 (#2815)

Bump actions/checkout from 6.0.1 to 6.0.2 (#2815) #1155

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]
workflow_dispatch:
jobs:
precheck:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- 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@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: 22.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-24.04
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- 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@6044e13b5dc448c55e2357c09f80417699197238
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