From 9de2096899ca81159af3a5f1b54245d1e276eaaf Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Tue, 2 May 2023 14:45:37 +0200 Subject: [PATCH] Add test step to gh actions --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a6342a..323b37b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,21 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '16' + node-version: "16" - run: npm install - run: npm run lint + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: "16" + - run: npm install + - run: npm run test + build: runs-on: ubuntu-20.04 steps: @@ -25,7 +36,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '16' + node-version: "16" - run: npm install - run: cp .env.sample .env.local - run: npm run build