diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 51dc115..dab0fad 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -6,9 +6,12 @@ on: jobs: contrib-readme-job: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write name: A job to automate contrib in readme steps: - name: Contribute List - uses: akhilmhdh/contributors-readme-action@v2.3.6 + uses: akhilmhdh/contributors-readme-action@v2.3.11 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1cc028c..efd2c30 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,30 +21,27 @@ jobs: fail-fast: false matrix: node-version: - - 14 - 16 - 18 + - 20 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - run: yarn - run: yarn build coverage: + needs: [ build ] name: coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: actions/setup-node@master + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: - node-version: '16' - - run: npm install - - run: npm run test - - uses: paambaati/codeclimate-action@v3.2.0 - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - if: env.CC_TEST_REPORTER_ID != null + node-version: '18' + - run: yarn + - run: yarn test + - uses: codecov/codecov-action@v5 with: - coverageCommand: yarn test - debug: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/codeconv.yml b/codeconv.yml new file mode 100644 index 0000000..9d7cf4d --- /dev/null +++ b/codeconv.yml @@ -0,0 +1,16 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "70...100" + +fixes: + - "dist/source/::source/" # Map dist/source/ to source/ + - "dist/test/::test/" # Map dist/test/ to test/ + +comment: + layout: "reach,diff,flags,files,footer" + behavior: default + require_changes: no \ No newline at end of file diff --git a/source/page.ts b/source/page.ts index 788b748..cb8f463 100644 --- a/source/page.ts +++ b/source/page.ts @@ -8,8 +8,6 @@ import { MSGS } from './messages'; // eslint-disable-next-line @typescript-eslint/no-var-requires const infoboxParser = require('infobox-parser'); - - export class Page { pageid!: number; ns!: number; diff --git a/tsconfig.json b/tsconfig.json index 5cb64e8..e4a6881 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { "outDir": "dist", - "target": "es2018", // Node.js 10 + "target": "es2022", // Node.js 18 "lib": [ - "es2018" + "es2022" ], "types" : [ "node", "jest" ], "strict": true, @@ -14,7 +14,9 @@ "module": "commonjs", "moduleResolution": "node", "declaration": true, - "useUnknownInCatchVariables": false + "useUnknownInCatchVariables": false, + "noPropertyAccessFromIndexSignature": false, + "isolatedModules": true }, "include": [ "source"