Skip to content

Commit

Permalink
seperate the smoke test and make it run once every day
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Aug 15, 2024
1 parent c8fc615 commit 1872de1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
push:
branches:
- master
- develop
- integration


jobs:
build_and_run:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand All @@ -36,5 +36,3 @@ jobs:
- name: Startup Nitro testnode
run: ${{ github.workspace }}/.github/workflows/testnode.bash

- name: Start smoke test
run: ${{ github.workspace }}/.github/workflows/smoke-test-node.bash
40 changes: 40 additions & 0 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Smoke Test CI
run-name: CI triggered from @${{ github.actor }} of ${{ github.head_ref }}

on:
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
- master
- integration
schedule:
# Run at the end of every day to make
- cron: "0 0 * * *"


jobs:
build_and_run:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
restore-keys: ${{ runner.os }}-buildx-

- name: Start Smoke Test with Latest Espresso Image
run: ${{ github.workspace }}/.github/workflows/smoke-test-node.bash

0 comments on commit 1872de1

Please sign in to comment.