Skip to content

fix(deps): update dependency @types/node to v22 #3483

fix(deps): update dependency @types/node to v22

fix(deps): update dependency @types/node to v22 #3483

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
coverage-badge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: shellcheck
uses: reviewdog/[email protected]
- uses: actions/[email protected]
with:
node-version: 20.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/[email protected]
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
working-directory: test-app
- name: Run test
run: yarn test --coverage
working-directory: test-app
- name: Run coverage badge js
uses: ./
with:
path: test-app
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v20
id: verify-changed-files
with:
files: |
test-app/coverage/badge.svg
- name: Coverage badge has changed
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
echo "test-app/coverage/badge.svg has uncommited changes"
exit 1
- name: Create Pull Request
if: failure()
uses: peter-evans/create-pull-request@v6
with:
base: "main"
title: "Updated coverage badge"
branch: "chore/update-coverage-badge"
commit-message: "Updated coverage badge."
body: "Updated coverage badge."
token: ${{ secrets.PAT_TOKEN }}