Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pieroxy/lz-string.git
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloLudger committed Jan 20, 2024
2 parents e962fa4 + effc4ce commit 8d017bb
Show file tree
Hide file tree
Showing 64 changed files with 5,859 additions and 8,580 deletions.
8 changes: 3 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
node_modules/
dist/
.prettierrc.js
.eslintrc.js
env.d.ts
coverage
dist
node_modules
30 changes: 12 additions & 18 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier"
],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".ts"]
}
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "eslint-config-prettier"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src", "test"],
"extensions": [".ts"]
}
}
},
"env": {
"browser": true,
"node": true
}
},
"env": {
"browser": true,
"node": true
},
// TODO - Remove after TS release
"ignorePatterns": ["main.ts", "base64-string.ts"]
}
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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: Tests

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.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 i --no-package-lock # alternatively run `npm update` after installs
- run: npm run build --if-present
- run: npm run test
Loading

0 comments on commit 8d017bb

Please sign in to comment.