Skip to content

Setup Zizmor analysis for Github Actions #5160

Setup Zizmor analysis for Github Actions

Setup Zizmor analysis for Github Actions #5160

name: test-javascript
on:
push:
branches:
- main
- renovate/**
paths:
- javascript/**
- .github/**
pull_request:
branches:
- main
paths:
- javascript/**
- .github/**
workflow_call:
jobs:
test-javascript:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node-version: ['20.x', '22.x', '24.x']
include:
- os: windows-latest
node-version: '22.x'
- os: macos-latest
node-version: '22.x'
steps:
- name: set git core.autocrlf to 'input'
run: git config --global core.autocrlf input
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: with Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: javascript/package-lock.json
- run: npm install-ci-test
working-directory: javascript
- run: npm run lint
working-directory: javascript