From 4bb2b066146ed9a865f1316f5cab7c4e63f1bca1 Mon Sep 17 00:00:00 2001 From: Jem <0x0xjem@gmail.com> Date: Wed, 17 Jul 2024 17:01:36 +0400 Subject: [PATCH] Add GitHub CI --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f240920 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: test + +on: + push: + branches: + - master + pull_request: + +jobs: + check: + strategy: + fail-fast: true + + name: GUni + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v2 + + - name: Install Dependencies + run: | + yarn install + shell: bash + + - name: Run lint check + run: pnpm run lint:check + + - name: Build Solidity Contracts + run: | + yarn compile + id: build + + - name: Run Tests + run: | + yarn test + id: test