Skip to content

sammynave static analysis #83

sammynave static analysis

sammynave static analysis #83

name: Static Analysis
run-name: ${{github.actor}} static analysis
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
Run-Lint:
runs-on: ubuntu-latest
env:
PUBLIC_FAKTORY_URL: http://localhost:7420
FAKTORY_URL: tcp://localhost:7419
FAKTORY_PASSWORD: ''
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: startup
DATABASE_URL: postgres://postgres:password@localhost:5432/startup
# why does this work instead of localhost?
REDIS_WS_SERVER: redis://:password@127.0.0.1:6379
REDIS_WS_PASSWORD: password
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Check Types
run: pnpm run check