⬆️(deps): Bump uuid from 10.0.0 to 11.0.3 #421
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
name: Deepsource report test coverage | |
on: | |
push: | |
branches: [dev,master] | |
pull_request: | |
branches: | |
- master | |
- dev | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
report-test-coverage: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Setup | |
uses: actions/setup-node@v3 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}" | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --immutable | |
- run: yarn test:cov | |
- name: Add git safe.directory for container | |
run: | | |
mkdir -p /home/runner/work/_temp/_github_home | |
printf "[safe]\ndirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig | |
- name: Report test-coverage to DeepSource | |
uses: deepsourcelabs/test-coverage-action@master | |
with: | |
key: javascript | |
coverage-file: ./coverage/lcov.info | |
dsn: ${{ secrets.DEEPSOURCE_DSN }} |