From 97f13bd9c9d3645ebc7e4184490fbdef44a43882 Mon Sep 17 00:00:00 2001 From: zamielchia Date: Wed, 25 Oct 2023 05:21:27 +0800 Subject: [PATCH] ci: add github actions to test packages --- .github/workflows/explorer-kit.yaml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/explorer-kit.yaml diff --git a/.github/workflows/explorer-kit.yaml b/.github/workflows/explorer-kit.yaml new file mode 100644 index 0000000..df54302 --- /dev/null +++ b/.github/workflows/explorer-kit.yaml @@ -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