From 601330904af3974b1078a32dfc022f09397d5722 Mon Sep 17 00:00:00 2001 From: Lucas Dower Date: Mon, 4 Apr 2022 19:56:19 +0100 Subject: [PATCH] Updated workflows --- .github/workflows/build.js.yml | 11 +++++++++++ .github/workflows/{node.js.yml => tests.js.yml} | 6 ++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.js.yml rename .github/workflows/{node.js.yml => tests.js.yml} (66%) diff --git a/.github/workflows/build.js.yml b/.github/workflows/build.js.yml new file mode 100644 index 0000000..8ec6184 --- /dev/null +++ b/.github/workflows/build.js.yml @@ -0,0 +1,11 @@ +name: Build +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install modules + run: npm ci + - name: Run build + run: npm run build \ No newline at end of file diff --git a/.github/workflows/node.js.yml b/.github/workflows/tests.js.yml similarity index 66% rename from .github/workflows/node.js.yml rename to .github/workflows/tests.js.yml index 39d20f4..600cd9a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/tests.js.yml @@ -1,4 +1,4 @@ -name: Build +name: Tests on: push jobs: build: @@ -6,8 +6,6 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install modules - run: npm install - - name: Run build - run: npm run build + run: npm ci - name: Run tests run: npm test