Skip to content

fix(deps): update dependency @types/node to v20.14.10 #3041

fix(deps): update dependency @types/node to v20.14.10

fix(deps): update dependency @types/node to v20.14.10 #3041

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: shellcheck
uses: reviewdog/action-shellcheck@v1.23
- uses: actions/setup-node@v4.0.2
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/cache@v4.0.2
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 }}