Skip to content

Commit

Permalink
ci: adjust PR syntax for code coverage, only on merged PRs to `develo…
Browse files Browse the repository at this point in the history
…p` (#771)

* ci: adjust PR syntax for code coverage, only on merged PRs to `develop`

* ci: adjust nodejs heap memory
  • Loading branch information
CJ42 authored Oct 30, 2023
1 parent fbbec61 commit a9f3e86
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@

name: Solidity Code coverage

env:
# 4GB of memory to prevent max heap size error when running code coverage
NODE_OPTIONS: "--max_old_space_size=4096"

on:
push:
pull_request:
branches:
- "develop"
types:
- closed

jobs:
coverage:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit a9f3e86

Please sign in to comment.