Skip to content

⬆️ Update node to v20.13.0 #734

⬆️ Update node to v20.13.0

⬆️ Update node to v20.13.0 #734

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
IS_COVERAGE_ALLOWED: ${{ secrets.CODACY_PROJECT_TOKEN != '' }}
IS_MASTER_BRANCH: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
if $IS_COVERAGE_ALLOWED && $IS_MASTER_BRANCH; then
npm run test-with-coverage
npm run upload-coverage
else
npm run test
fi
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}