diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 001653d..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Javascript Node CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-javascript/ for more details -# -version: 2.1 -orbs: - codecov: codecov/codecov@1.1.3 -jobs: - build: - docker: - # specify the version you desire here - - image: cimg/node:21.1.0 - - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/mongo:3.4.4 - - working_directory: ~/webpack-sweet-entry - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: - name: Install dependencies - command: | - npm install - - - run: - name: Test - command: | - npm run test - - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - codecov/upload: - file: ./coverage/lcov.info diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index db43772..a272b41 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,11 +35,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,7 +50,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -64,4 +64,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..dabc10e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + # node-version: 21.1.0 + node-version-file: 'package.json' + + - name: Restore Cache + id: cache-node-modules + uses: actions/cache@v4 + with: + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + path: node_modules + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + run: npm install + + - name: Test + run: npm run test + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODE_COV_TOKEN }} + files: ./coverage/lcov.info diff --git a/README.md b/README.md index cf58db3..a6f9d39 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # @sect/webpack-sweet-entry -[![CircleCI](https://circleci.com/gh/sectsect/webpack-sweet-entry.svg?style=svg)](https://circleci.com/gh/sectsect/webpack-sweet-entry) [![codecov](https://codecov.io/gh/sectsect/webpack-sweet-entry/branch/master/graph/badge.svg?token=0EKNBV7VK1)](https://codecov.io/gh/sectsect/webpack-sweet-entry) ![CodeQL](https://github.com/sectsect/webpack-sweet-entry/actions/workflows/codeql-analysis.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40sect%2Fwebpack-sweet-entry.svg)](https://badge.fury.io/js/%40sect%2Fwebpack-sweet-entry) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) - -[![NPM](https://nodei.co/npm/@sect/webpack-sweet-entry.png)](https://npmjs.org/package/@sect/webpack-sweet-entry) +[![Test](https://github.com/sectsect/webpack-sweet-entry/actions/workflows/test.yml/badge.svg)](https://github.com/sectsect/webpack-sweet-entry/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/sectsect/webpack-sweet-entry/branch/master/graph/badge.svg?token=0EKNBV7VK1)](https://codecov.io/gh/sectsect/webpack-sweet-entry) ![CodeQL](https://github.com/sectsect/webpack-sweet-entry/actions/workflows/codeql-analysis.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40sect%2Fwebpack-sweet-entry.svg)](https://badge.fury.io/js/%40sect%2Fwebpack-sweet-entry) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) Multiple entry points with glob pattern / Partial files with underscore / Preserve directory structure @@ -149,10 +147,6 @@ $ npm install --save-dev @sect/webpack-sweet-entry See [CHANGELOG](https://github.com/sectsect/webpack-sweet-entry/blob/master/CHANGELOG.md) file. -## License - -See [LICENSE](https://github.com/sectsect/webpack-sweet-entry/blob/master/LICENSE) file. -

✌ī¸

A little project by @sectsect diff --git a/package.json b/package.json index 5cf822f..82fd9e8 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "7.0.2", "description": "Multiple entry points with glob pattern / Partial files with underscore / Preserve directory structure", "engines": { - "node": ">=18.0.0" + "node": ">=21.0.0" }, "main": "dist/index.js", "types": "dist/index.d.ts",