Bump @types/node from 20.14.2 to 20.14.9 #220
Workflow file for this run
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: Unit Tests | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- "main" | |
jobs: | |
unit-tests: | |
name: Tests | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
env: | |
CLOUDMERSIVE_API_KEY: ${{ secrets.CLOUDMERSIVE_API_KEY }} | |
DEEPAI_API_KEY: ${{ secrets.DEEPAI_API_KEY }} | |
PICPURIFY_API_KEY: ${{ secrets.PICPURIFY_API_KEY }} | |
SIGHTENGINE_API_USER: ${{ secrets.SIGHTENGINE_API_USER }} | |
SIGHTENGINE_API_SECRET: ${{ secrets.SIGHTENGINE_API_SECRET }} | |
steps: | |
- name: Checkout ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: Cache node_modules | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Compile | |
if: ${{ steps.cache.outputs.cache-hit != 'true' }} | |
run: yarn install | |
- name: Unit tests | |
run: yarn test | |
if: github.ref != 'refs/heads/main' | |
- name: Unit tests with coverage | |
uses: paambaati/codeclimate-action@v6.0.0 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: yarn test | |
debug: true |