-
Notifications
You must be signed in to change notification settings - Fork 25
97 lines (79 loc) · 2.05 KB
/
Copy pathintegration.yml
File metadata and controls
97 lines (79 loc) · 2.05 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Project integration tests
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
BASED_ENV: dev
PORTAL_TIMEOUT: 180
jobs:
# Build images and publish as artifacts
build:
name: Build images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Just
uses: taiki-e/install-action@just
- name: Build Docker images
run: |
just build
- name: Save Docker images to tarballs
run: |
mkdir -p artifacts
just ci export-images $(realpath ./artifacts)
- name: Upload images artifacts
uses: actions/upload-artifact@v4
with:
name: based-op-images
path: artifacts
# Use published artifacts and run nodes
test:
name: Configure nodes & run tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Install Just
uses: taiki-e/install-action@just
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Download images artifacts
uses: actions/download-artifact@v4
with:
name: based-op-images
path: /tmp/artifacts/images
- name: Load Docker images
run: |
find /tmp/artifacts/images -type f -exec docker load -i {} \;
- name: Prepare configuration
run: |
just ci prepare
- name: Publish configuration artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: config
path: .local
- name: Start Based OP services
run: |
just ci run
- name: Run tests
shell: bash
run: |
just ci test
- name: Teardown
if: always()
run: |
just ci stop