Skip to content

deps: bump typescript from 5.7.2 to 5.7.3 (#23) #101

deps: bump typescript from 5.7.2 to 5.7.3 (#23)

deps: bump typescript from 5.7.2 to 5.7.3 (#23) #101

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# For more information see: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow
name: CI
on:
push:
branches: ["*"]
paths:
- "recipes/**"
- "package.json"
- "package-lock.json"
- ".github/workflows/*.yml"
pull_request:
branches: ["*"]
paths:
- "recipes/**"
- "package.json"
- "package-lock.json"
- ".github/workflows/*.yml"
types:
- opened
- ready_for_review
- reopened
- synchronize
jobs:
get-matrix:
runs-on: ubuntu-latest
outputs:
latest: ${{ steps.set-matrix.outputs.requireds }}
steps:
- uses: ljharb/actions/node/matrix@main
id: set-matrix
with:
versionsAsRoot: true
type: majors
preset: ">= 22" # glob is not backported below 22.x
lint-and-types:
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
show-progress: false
- name: Set up Node.js LTS
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- run: npm ci
- run: node --run lint
- run: node --run type-check
tests:
needs: [get-matrix]
runs-on: ${{ matrix.os }}
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.get-matrix.outputs.latest) }}
os:
- macos-latest
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
show-progress: false
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- name: Run recipe tests
run: >-
node
--run test
--test-coverage-lines=0.8
--test-reporter-destination=./coverage.lcov
--test-reporter=lcov