Skip to content

Fix litlytics lib github ci prerelease and release run conditions #15

Fix litlytics lib github ci prerelease and release run conditions

Fix litlytics lib github ci prerelease and release run conditions #15

Workflow file for this run

name: Test and lint
on:
push:
paths-ignore:
- '**/*.md' # Ignore changes to markdown files
pull_request:
paths-ignore:
- '**/*.md' # Ignore changes to markdown files
jobs:
test-lint:
environment: Github CI
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install bun for deployment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
# install deps
- name: Install lib deps
working-directory: ./packages/litlytics
run: bun install --frozen-lockfile
- name: Install app deps
run: bun install --frozen-lockfile
# lib lint/check/test
- name: Run lib typecheck
working-directory: ./packages/litlytics
run: bun run typecheck
- name: Run lib tests
working-directory: ./packages/litlytics
run: bun run test:ci
# main app lint/check/test
- name: Run app eslint
run: bun run lint
- name: Run app typecheck
run: bun run typecheck
- name: Run app test
run: bun run test:ci