Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"plugins": ["chai-friendly"],
"rules": {
"no-unused-expressions": "off",
"chai-friendly/no-unused-expressions": "error"
}
}
41 changes: 22 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://github.com/marketplace/actions/setup-node-js-environment

name: CI
name: PR Tests

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

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.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
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
- run: npm install --ignore-scripts
- run: npm run ci
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run specific test file
run: npx mocha test/date-holidays-fr.test.js test/date-holidays-be.test.js test/date-holidays-de.test.js

- name: Report test results
if: failure()
run: echo "Tests failed! Check the output for details."
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ tmp/
.idea/
.DS_Store

package-lock.json
pnpm-lock.yaml
yarn.lock

Loading
Loading