-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add github actions to test packages
- Loading branch information
1 parent
7434c5a
commit 97f13bd
Showing
1 changed file
with
39 additions
and
0 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,39 @@ | ||
name: ExplorerKit Test | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "packages/explorerkit-translator/**" | ||
- "packages/explorerkit-idls/**" | ||
|
||
jobs: | ||
run-test-cases: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm package manager | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7.18.2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "pnpm" | ||
- name: Install Node Modules | ||
run: pnpm install | ||
- name: Run ExplorerKit Idls Repo Tests | ||
run: pnpm test | ||
working-directory: ./packages/explorerkit-idls | ||
- name: Build @solanafm/ek-idls-repo | ||
run: pnpm build | ||
working-directory: ./packages/explorerkit-idls | ||
- name: Run Explorer Kit Tests | ||
run: pnpm test | ||
working-directory: ./packages/explorerkit-translator | ||
- name: Build @solanafm/ek-idls-repo | ||
run: pnpm build | ||
working-directory: ./packages/explorerkit-idls |