-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.6 KB
/
test-pr.yml
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
---
name: 'Test PR'
on:
pull_request:
branches:
- "master"
# Stop in progress workflows on the same branch and same workflow to use latest committed code
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
new-version-test:
name: 'Test Proofs'
runs-on: [self-hosted, linux, normal]
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
fetch-depth: 0
- name: 'Get Kontrol Version'
run: |
set -euo pipefail
# Get the version of the tool from the Dockerfile
echo "kontrol-version=$(cat deps/kontrol_release)" >> $GITHUB_ENV
# Get Repository Base name
echo "repository_basename=$(basename ${{ github.repository }})" >> $GITHUB_ENV
- name: Docker Login w/ Github Token
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Start Docker Container"
uses: ./.github/actions/with-docker
with:
container-name: '${{ env.repository_basename }}-ci'
container-version: '${{ env.kontrol-version }}'
- name: 'Test New Tool Versions'
run: |
# Run the following in the running docker container
docker exec -u ubuntu ${{ env.repository_basename }}-ci bash -c 'export PATH=/home/ubuntu/.foundry/bin:$PATH && which forge'
docker exec -u ubuntu ${{ env.repository_basename }}-ci bash -c './test/run-kevm.sh'