Skip to content

fix(api): 3308 - bug young contract status #464

fix(api): 3308 - bug young contract status

fix(api): 3308 - bug young contract status #464

Workflow file for this run

# TODO: REMOVE
name: API - Run Tests
on:
workflow_dispatch:
workflow_call:
inputs:
branch_name:
required: true
type: string
pull_request:
branches:
- main
merge_group:
types:
- checks_requested
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch_name }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Start MongoDB 7.0
uses: supercharge/[email protected]
with:
mongodb-version: "7.0"
- uses: actions/cache@v4
id: cache-npm
with:
path: |
apiv2/node_modules
node_modules
api/node_modules
app/node_modules
admin/node_modules
packages/ds/node_modules
packages/lib/node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json', '.nvmrc') }}
restore-keys: |
${{ runner.os }}-nodemodules-
- name: Install packages
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
- name: Build lib
working-directory: packages/lib
run: npm run build
- name: Lint code
working-directory: api
run: npm run lint
- name: Test and Send coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CI: true
with:
workingDirectory: api
coverageCommand: npm run coverage