Merge pull request #1733 from input-output-hk/ci/release-nominate-ref #6486
This file contains hidden or 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: Continuous Integration - Unit Tests | |
| env: | |
| TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }} | |
| TL_LEVEL: ${{ github.event.pull_request.head.repo.fork && 'info' || vars.TL_LEVEL }} | |
| on: | |
| pull_request: | |
| push: | |
| branches: ['master'] | |
| tags: ['*.*.*'] | |
| jobs: | |
| build_and_test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: 🧰 Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| - name: 🔨 Install | |
| uses: ./.github/actions/install | |
| with: | |
| ignore-scripts: ${{ vars.DISABLE_NPM_SCRIPTS || 'false' }} | |
| - name: 🔨 Build | |
| run: yarn build | |
| env: | |
| NODE_OPTIONS: '--max_old_space_size=8192' | |
| - name: 🔬 Test | |
| run: | | |
| yarn test --forceExit | |
| yarn test:handle | |
| env: | |
| NODE_OPTIONS: '--max_old_space_size=8192' |