Skip to content

Commit

Permalink
chore: updated CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
webdeveric committed Feb 10, 2024
1 parent ab6a6b9 commit 06bb1c8
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
webpack-version: ['5.2.0', 5]
dev-server-version: ['3.6.0', 3]
css-loader-version: ['3.5.0', latest]
node-version: [16.x, 18.x, 20.x]
webpack-version: ["5.2.0", 5]
dev-server-version: ["3.6.0", 3]
css-loader-version: ["3.5.0", latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Installing dependencies
run: npm ci
- name: Installing specific dependency versions
Expand All @@ -32,7 +34,7 @@ jobs:
- name: Generating coverage report
run: npm run lcov --if-present
- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
file: ./coverage.lcov
fail_ci_if_error: true

0 comments on commit 06bb1c8

Please sign in to comment.