From 5ebc7a0f6cc26f21bcea1408fbf40de64ffc936e Mon Sep 17 00:00:00 2001 From: Dario Baumberger Date: Mon, 16 Oct 2023 23:08:57 +0200 Subject: [PATCH] workflows --- .github/workflows/build.yml | 3 ++- .github/workflows/coverage.yml | 29 ----------------------------- 2 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5462b48..fe65a9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ # 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: Node.js CI +name: Build and Test on: push: @@ -28,3 +28,4 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test + - run: npm run coverage diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index fbc0de3..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,29 +0,0 @@ -# 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: Node.js CI - -on: - push: - branches: ["master"] - pull_request: - branches: ["master"] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x, 18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm ci - - run: npm run coverage