This repository has been archived by the owner on May 24, 2024. It is now read-only.
Update semgrep workflow #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'setup-local' | |
on: | |
pull_request: | |
paths: | |
- 'setup-local/**' | |
- '.github/workflows/setup-local*' | |
push: | |
paths: | |
- 'setup-local/**' | |
- '.github/workflows/setup-local*' | |
jobs: | |
unit-tests: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Node.js 20.x | |
uses: actions/setup-node@master | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
cache-dependency-path: 'setup-local/package-lock.json' | |
- name: npm install | |
working-directory: ./setup-local | |
run: npm install | |
- name: Lint and Unit tests | |
working-directory: ./setup-local | |
run: npm run test |