Skip to content

add snapshot tests to check altitude sanitizer (#40) #20

add snapshot tests to check altitude sanitizer (#40)

add snapshot tests to check altitude sanitizer (#40) #20

Workflow file for this run

name: CI/CD - Run lint and formatting checkout
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
lint-and-format:
runs-on: [self-hosted]
timeout-minutes: 10
env:
SITE_ROOT: /var/www/html/project1
npm_config_cache: ${{ github.workspace }}/.npm-cache
TMPDIR: ${{ github.workspace }}/.tmp
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Install dependencies
run: |
mkdir -p "$TMPDIR"
npm ci --no-audit --no-fund
- name: Run Prettier check
run: npx prettier . --check
- name: Run ESLint
run: npm run lint
- name: Run Tests
run: npm run test