From 2670f05351aaffbe554d818ee37b39e86e86c2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dragi=C5=A1a=20Spasojevi=C4=87?= Date: Mon, 18 Dec 2023 22:26:09 +0100 Subject: [PATCH] add ci --- .github/workflows/build-test.yml | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 00000000..69af025a --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,43 @@ +name: Build, Test + +on: + pull_request: + workflow_dispatch: + +jobs: + install: + name: 'Install' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install node_modules + uses: OffchainLabs/actions/node-modules/install@main + + test-unit: + name: Test (Unit) + runs-on: ubuntu-latest + needs: install + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Restore node_modules + uses: OffchainLabs/actions/node-modules/restore@main + + - name: Build + run: yarn build + + - name: Test + run: yarn test