diff --git a/.github/workflows/test-readings.yaml b/.github/workflows/test-readings.yaml new file mode 100644 index 0000000..8d5b419 --- /dev/null +++ b/.github/workflows/test-readings.yaml @@ -0,0 +1,15 @@ +name: Node.js CI + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - run: npm ci + - run: npm test diff --git a/package.json b/package.json index 9032c7d..8ecb016 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,7 @@ { + "scripts": { + "test": "node ./src/test.js" + }, "dependencies": { "pinyin-pro": "^3.18.5", "yomichan-dict-builder": "^1.3.2"