diff --git a/.eslintignore b/.eslintignore index 37db03b..64be67e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,2 @@ -/coverage/ -/demo/lib/ -/lib/ +coverage/ +lib/ diff --git a/.github/README.md b/.github/README.md new file mode 120000 index 0000000..02ba92f --- /dev/null +++ b/.github/README.md @@ -0,0 +1 @@ +../packages/regex-to-strings/README.md \ No newline at end of file diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 4dfb18c..b1cd84f 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -22,15 +22,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b36b84..51c0226 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,30 +18,42 @@ jobs: strategy: fail-fast: false matrix: - node-version: [12.x, 16.x, lts/*] + node-version: [18.x] + require-successful-testpack: [true] + include: + - node-version: 20.x + require-successful-testpack: false + - node-version: lts/* + require-successful-testpack: false steps: - name: Checkout repository - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4 with: fetch-depth: '2' - name: Test on Node ${{ matrix.node-version }} - uses: actions/setup-node@v2.5.0 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm install + - run: yarn - run: npx prettier --check . - - run: npm run lint - - run: npm run build - - run: npm run test - - run: npx testpack-cli --keep=@types/*,ts-jest,typescript jest.config.js tsconfig.json src/e2e.spec.ts src/tsconfig.test.json + - run: yarn run build + - run: yarn run lint + - run: yarn run test + + - run: npx testpack-cli --keep=@types/*,ts-jest,typescript jest.config.js tsconfig.test.json src/e2e.spec.ts + working-directory: ./packages/regex-to-strings + # Workaround for #66 + continue-on-error: ${{ !matrix.require-successful-testpack }} - name: Upload test coverage report to Codecov - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v5.4.3 with: fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Setup Snyk uses: snyk/actions/setup@master diff --git a/.gitignore b/.gitignore index 6477d00..5fcdb68 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ package-lock.json *.tsbuildinfo coverage/ -demo/lib/ node_modules/ lib/ diff --git a/.prettierignore b/.prettierignore index 3ad954a..6c4a539 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,5 @@ package-lock.json package.json + +coverage/ +lib/ diff --git a/demo/index.html b/demo/index.html index 1650b48..4ad8008 100644 --- a/demo/index.html +++ b/demo/index.html @@ -226,7 +226,7 @@
Thanks for your feedback!