Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemanja0x committed Mar 8, 2023
1 parent d2c2048 commit c65cfdc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e-polybft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on: # yamllint disable-line rule:truthy
- main
- develop
pull_request:
workflow_call:

jobs:
build:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
name: Nightly Build
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 2 * * *' # run at 2 AM UTC
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- develop
pull_request:

jobs:
build:
Expand All @@ -21,8 +23,10 @@ jobs:
e2e:
name: E2E Tests
uses: ./.github/workflows/e2e-polybft.yml
needs: build

property:
name: Property Tests
uses: ./.github/workflows/property-polybft.yml
needs: build

12 changes: 9 additions & 3 deletions .github/workflows/property-polybft.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
name: PolyBFT Property based tests
name: PolyBFT Property tests
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- develop
workflow_call:

jobs:
build:
Expand All @@ -17,8 +23,8 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Run property tests
run: make test-e2e-polybft-property:
- name: Run tests
run: make test-property-polybft
- name: Archive test logs
if: always()
uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ test-e2e:
test-e2e-polybft:
# We can not build with race because of a bug in boltdb dependency
go build -o artifacts/polygon-edge .
env EDGE_BINARY=${PWD}/artifacts/polygon-edge E2E_TESTS=true E2E_LOGS=true go test -v -timeout=30m ./e2e-polybft/e2e/...
env EDGE_BINARY=${PWD}/artifacts/polygon-edge E2E_TESTS=true E2E_LOGS=true E2E_TESTS_TYPE=Integration go test -v -timeout=30m ./e2e-polybft/e2e/...

test-e2e-polybft-property:
test-property-polybft:
# We can not build with race because of a bug in boltdb dependency
go build -o artifacts/polygon-edge .
env EDGE_BINARY=${PWD}/artifacts/polygon-edge E2E_TESTS=true E2E_LOGS=true E2E_TESTS_TYPE=Property go test -v -timeout=30m ./e2e-polybft/property/...
Expand Down

0 comments on commit c65cfdc

Please sign in to comment.