Refactor GitHub Actions Workflows for Improved CI/CD Performance #2
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: Run unit tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: {} | |
jobs: | |
Build-And-Test-Server: | |
timeout-minutes: 210 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Build o1js and execute tests | |
env: | |
TEST_TYPE: ${{ matrix.test_type }} | |
continue-on-error: false | |
run: | | |
git submodule update --init --recursive | |
npm ci | |
npm run build | |
npm run test:unit | |
touch profiling.md | |
cat profiling.md >> $GITHUB_STEP_SUMMARY |