Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nightly verification test GHA workflow #442

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/verification.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Verification tests

on:
workflow_dispatch: # To start from UI
schedule:
- cron: "12 0 * * *" # 00:12am UTC daily

env:
REPOSITORY_OWNER: ${{ github.repository_owner }}
GHCR_REGISTRY: "ghcr.io"
GHCR_REGISTRY_USERNAME: ${{ github.actor }}
GHCR_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
# prevent running on forks
if: github.repository_owner == 'restatedev'
runs-on: warp-ubuntu-latest-x64-16x # warpbuild runner
timeout-minutes: 250
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log into GitHub container registry
uses: docker/login-action@v2
with:
registry: ${{ env.GHCR_REGISTRY }}
username: ${{ env.GHCR_REGISTRY_USERNAME }}
password: ${{ env.GHCR_REGISTRY_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Typescript test-services image
id: build
uses: docker/build-push-action@v6
with:
context: .
file: "packages/restate-e2e-services/Dockerfile"
push: false
load: true
tags: localhost/restatedev/test-services:latest
cache-from: type=gha,scope=${{ github.workflow }}

- name: Run the verification test
env:
RESTATE_CONTAINER_IMAGE: 'ghcr.io/restatedev/restate:main'
SERVICES_CONTAINER_IMAGE: 'localhost/restatedev/test-services:latest'
run: ./scripts/run-verification.sh