Skip to content

Update tests collatz conjecture (#2581) #973

Update tests collatz conjecture (#2581)

Update tests collatz conjecture (#2581) #973

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 (22.x)
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
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-22.04
strategy:
matrix:
node-version: [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