Skip to content

Commit

Permalink
Refactor integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rddimon committed Jan 2, 2024
1 parent 8033c11 commit 1c9c016
Show file tree
Hide file tree
Showing 26 changed files with 4,951 additions and 2,433 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dist
coverage
dist
node_modules
43 changes: 32 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"commonjs": true,
"node": true,
"mocha": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json"
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"airbnb-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-console": "off"
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"arrow-parens": [
"error",
"always"
],
"complexity": [
"error",
15
],
"guard-for-in": "error"
}
}
}
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Test, Lint, Release and Publish
on:
push:
branches:
- master
- main
jobs:
main:
name: Release and publish Node package
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Install and test
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x, 16.x, 18.x ]
node-version: [ 14.x, 16.x, 18.x, 20.x ]
steps:
- name: Checkout repository
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
Loading

0 comments on commit 1c9c016

Please sign in to comment.