chore(deps): bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 #640
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
jobs: | |
coverage: | |
permissions: | |
checks: write | |
pull-requests: write | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- run: npm ci | |
- uses: ArtiomTr/jest-coverage-report-action@v2 | |
id: coverage | |
with: | |
output: comment, report-markdown | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: "Test Coverage Report" | |
message: ${{ steps.coverage.outputs.report }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
recreate: true | |
number: ${{ github.event.pull_request.number }} | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# < 12.0.0 is not supported because jest and syntax | |
# > 16.0.0 is not supported because of tfjs obscure error | |
#send help | |
node-version: [ 16.x ] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- run: npm ci | |
- run: npm run build --if-present | |
- run: npm test | |