From 9f939c599a3ab18a84ab93d45b317d966e4a5930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Vi=C3=A9not?= Date: Mon, 28 Aug 2023 15:28:35 +0200 Subject: [PATCH] Add draft of GH workflow for basic CI test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon ViƩnot --- .github/workflows/tests.yaml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..22ad00a6 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,37 @@ +name: Tests + +on: + workflow_dispatch: + pull_request: + +jobs: + + test-server: + + name: Basic server non-regression + + runs-on: ubuntu-latest + + steps: + - name: Use Node.js TLS 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies + run: npm ci + + - name: Provide environment variables + run: cp environments/.en.dev.hedera environments/.env + + - name: Start Hedera Local Node + run: npm run local-node:start + + - name: Start hedera-sourcify server + run: npm run server:start + + - name: Start test + run: npm run test:hedera