From 0ae4f7e6c5be7f0fff783960ba7f0fe37f2e8f66 Mon Sep 17 00:00:00 2001 From: Egge Date: Sun, 12 Nov 2023 07:35:27 +0100 Subject: [PATCH] added testing to workflow --- .github/workflows/build.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc62571..3ef979b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,26 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Build and Lint +name: Build, Lint & Test on: push: - branches: [ "main" ] + branches: ['main'] pull_request: - branches: [ "main" ] + branches: ['main'] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js 18.x - uses: actions/setup-node@v3 - with: - node-version: 18.x - cache: 'npm' - - run: npm install - - run: npm run build - - run: npm run lint + - uses: actions/checkout@v3 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm install + - run: npm run build + - run: npm run lint + - run: npm run test