forked from cartesi/rollups-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.26 KB
/
auction-dapp.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
# yaml-language-server: =https://json.schemastore.org/github-workflow.json
---
name: "Build and test Auction DApp"
on:
workflow_dispatch:
push:
paths:
- "config/**"
- "docker/**"
- "docker-compose*.yml"
- "base.hcl"
- ".github/workflows/dapp-build.yml"
- ".github/workflows/auction-dapp.yml"
- "auction/**"
- "!**/*.md"
jobs:
build:
uses: ./.github/workflows/dapp-build.yml
with:
dapp-name: auction
secrets: inherit
unittest:
needs: build
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Run unit tests
env:
DAPP_IMAGE: ${{ needs.build.outputs.dapp-image }}
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python3 -m unittest
working-directory: ./auction/