Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

fix: update dependencies and add ci pipeline #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI pipeline

on: [ push, pull_request, workflow_dispatch ]

jobs:
build:
name: "Build node${{ matrix.node-version }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Use Node.js ${{ env.PRIMARY_NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
yarn --ignore-engines --frozen-lockfile --ignore-scripts
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"license": "MIT",
"dependencies": {
"@babel/code-frame": "^7.10.4",
"jest-worker": "^26.2.1",
"serialize-javascript": "^4.0.0",
"jest-worker": "^28.1.0",
"serialize-javascript": "^6.0.0",
"terser": "^5.0.0"
},
"peerDependencies": {
"rollup": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.11.1",
"jest": "^26.2.2",
"prettier": "^2.0.5",
"rollup": "^2.23.1"
"@babel/core": "^7.18.2",
"jest": "^28.1.0",
"prettier": "^2.6.2",
"rollup": "^2.75.4"
}
}
2 changes: 1 addition & 1 deletion rollup-plugin-terser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { codeFrameColumns } = require("@babel/code-frame");
const Worker = require("jest-worker").default;
const { Worker } = require("jest-worker");
const serialize = require("serialize-javascript");

function terser(userOptions = {}) {
Expand Down
2 changes: 2 additions & 0 deletions test/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Object {
"exports": Array [],
"fileName": "chunk-1.js",
"implicitlyLoadedBefore": Array [],
"importedBindings": Object {},
"imports": Array [],
"isDynamicEntry": false,
"isEntry": true,
Expand All @@ -25,6 +26,7 @@ Object {
"exports": Array [],
"fileName": "chunk-2.js",
"implicitlyLoadedBefore": Array [],
"importedBindings": Object {},
"imports": Array [],
"isDynamicEntry": false,
"isEntry": true,
Expand Down