diff options
| author | Bobby <[email protected]> | 2024-08-16 20:47:33 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-16 20:47:33 -0400 |
| commit | 6b28433d9cfde435be8ec2bd6cf91e6324d08865 (patch) | |
| tree | 8343c27b8b95ff5639233e81cf157f92e5688466 /.github/workflows/js.yml | |
| parent | d53094ec16ba385faae2973ddee648698b32ab24 (diff) | |
| parent | 048f56f51460df75e92a2f7b472e1c56baeb68f7 (diff) | |
| download | bootstrap-main.tar.xz bootstrap-main.zip | |
Diffstat (limited to '.github/workflows/js.yml')
| -rw-r--r-- | .github/workflows/js.yml | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 1f03d8cc5..1b672aa30 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -2,31 +2,37 @@ name: JS Tests on: push: - branches-ignore: - - "dependabot/**" + branches: + - main pull_request: + workflow_dispatch: env: FORCE_COLOR: 2 + NODE: 20 + +permissions: + contents: read jobs: run: - name: Node ${{ matrix.node }} + permissions: + # allow coverallsapp/github-action to create new checks issues and fetch code + checks: write + contents: read + name: JS Tests runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - node: [12, 14, 16] - steps: - name: Clone repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: ${{ env.NODE }} cache: npm - name: Install npm dependencies @@ -39,8 +45,8 @@ jobs: run: npm run js-test - name: Run Coveralls - uses: coverallsapp/[email protected] - if: matrix.node == 16 + uses: coverallsapp/github-action@v2 + if: ${{ !github.event.repository.fork }} with: github-token: "${{ secrets.GITHUB_TOKEN }}" path-to-lcov: "./js/coverage/lcov.info" |
