-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract test-lint into custom action, run it before all workflows
Use on-push / on-release triggers for (pre)release workflows for lib Should close #18
- Loading branch information
Showing
5 changed files
with
49 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'Test and lint code' | ||
description: 'Performs tests and linting of all the components in the repo' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
# install bun | ||
- 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 |
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
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
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
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