Skip to content

Merge pull request #10 from hegerdes/dependabot/npm_and_yarn/braces-3… #45

Merge pull request #10 from hegerdes/dependabot/npm_and_yarn/braces-3…

Merge pull request #10 from hegerdes/dependabot/npm_and_yarn/braces-3… #45

Workflow file for this run

name: Code-Test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
security-events: write
actions: read
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
test-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["18", "20"]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: npm install
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Run lint
run: npm run lint
- name: Test compile
run: |
# Running test
if [[ "$(node --version)" == "v18"* || "$(node --version)" == "v20"* ]]; then
export NODE_OPTIONS=--openssl-legacy-provider
fi
npm run test-compile