Skip to content

actions: add codeql scanning #262

actions: add codeql scanning

actions: add codeql scanning #262

Workflow file for this run

name: Tests
on:
pull_request:
types:
- opened
- ready_for_review
- synchronize
- labeled
branches:
- main
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }}
steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run test:unit
e2e-test:
name: E2E Tests
runs-on: ubuntu-latest
if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }}
steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run test:e2e