Skip to content

Commit

Permalink
Periodic unit and integration tests run workflow
Browse files Browse the repository at this point in the history
Scheduled to run every 24hs
  • Loading branch information
amendelzon committed Nov 7, 2023
1 parent 2d0bd06 commit 3031b89
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 11 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -49,6 +58,7 @@ jobs:
uses: actions/checkout@v3
with:
path: rsk-powhsm
ref: ${{ inputs.branch }}

- name: Build required software
working-directory: rsk-powhsm
Expand Down

0 comments on commit 3031b89

Please sign in to comment.