test(e2e): repurpose blockfrost test suite for direct from client providers #5729
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: 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-20.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: 18.12.0 | |
- name: 🔨 Build | |
run: | | |
yarn install --immutable --inline-builds --mode=skip-build | |
yarn build | |
env: | |
NODE_OPTIONS: '--max_old_space_size=8192' | |
- name: 🔨 Generated files | |
run: | | |
git checkout yarn-project.nix | |
if [ ! -z "$(git status --porcelain)" ] ; then git status ; echo "The PR is missing some generated file" ; exit 1 ; fi | |
env: | |
NODE_OPTIONS: '--max_old_space_size=8192' | |
- name: 🔬 Test | |
run: | | |
yarn test --forceExit | |
env: | |
NODE_OPTIONS: '--max_old_space_size=8192' |