-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.32 KB
/
pr-optional-compose.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
# Triggered via !ci-test-basic tag
name: Check basic integration
on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-basic:
runs-on: [self-hosted, integration]
#if: ${{ contains(github.event.pull_request.labels.*.name,'!ci-test-basic') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure sccache env for Rust
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Build dev containers
run: |
./scripts/build_docker.sh
- name: Initialize environment file
run: |
cat << EOF > .env
${{ secrets.CMC_ENV_FILE }}
EOF
- name: Setup containers
run: |
docker compose up -d
- name: fetch prices
run: |
docker compose run --rm --remove-orphans tc-cli fetch-token-price-data
- name: Smoke test
run: |
docker compose run --rm --remove-orphans tc-cli smoke-test 0 1
- name: Cleanup
if: ${{ always() }}
run: |
docker compose --profile "*" down