Fix litlytics lib github ci prerelease and release run conditions #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |