-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (44 loc) · 1.54 KB
/
verification.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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