diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml new file mode 100644 index 00000000..62ae1f5a --- /dev/null +++ b/.github/workflows/periodic.yml @@ -0,0 +1,15 @@ +name: Periodic workflow run + +on: + push: + schedule: + - cron: "17 6 * * *" + +jobs: + run-tests-on-master: + name: "Run tests on master" + + uses: rsksmart/rsk-powhsm/.github/workflows/run-tests.yml + with: + branch: master + secrets: inherit diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b1256536..4f2f9502 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,13 @@ name: Run tests -on: [push] +on: + push: + workflow_call: + inputs: + branch: + description: "The branch on which to run this workflow" + required: true + type: string jobs: run-unit-tests: @@ -10,6 +17,8 @@ jobs: steps: - name: Checkout this repo uses: actions/checkout@v3 + with: + ref: ${{ inputs.branch }} - name: Build the middleware docker image run: docker/mware/build @@ -49,6 +58,7 @@ jobs: uses: actions/checkout@v3 with: path: rsk-powhsm + ref: ${{ inputs.branch }} - name: Build required software working-directory: rsk-powhsm