From c18c3e5d648a0012d9edf57d97054a4bcb4742a1 Mon Sep 17 00:00:00 2001 From: Sarju Hansaliya Date: Tue, 2 May 2023 16:53:20 +0300 Subject: [PATCH] fix: add ci actions for tests --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..2b924b38 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Tests + +env: + CI: true + +on: + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v3 + with: + node-version: "16.x" + cache: "yarn" + registry-url: "https://registry.npmjs.org/" + + - run: yarn --frozen-lockfile + + # this is just dummy private key, doesnt matter for tests to run + - run: echo "PRIVATE_KEY=7830402369e2dd6ae73869f788ba81ffb2efa09b2b819f89ecc882f379444444" > .env + + - run: yarn test