-
Notifications
You must be signed in to change notification settings - Fork 21
64 lines (57 loc) · 1.77 KB
/
e2e.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: e2e-test
on:
push:
branches: [master, develop, "feat/*"]
pull_request:
branches: [master, develop, "feat/*"]
jobs:
nodejs-step:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x, 20.x]
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# - name: Install Windows Build Tools (if needed)
# if: matrix.os == 'windows-latest'
# run: |
# npm install -g windows-build-tools
- name: Install Node.js dependencies
run: npm install
- name: Compile contract
run: npx hardhat compile
- name: Start local blockchain
run: npx hardhat node & sleep 5
python-step:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: pip install -r requirements.txt
# - name: Start App
# run: python app.py & sleep 5
# Add your testing steps here
# - name: Simulate GPIO 14 ON request
# run: |
# if [[ "${matrix.os}" == "windows-latest" ]]; then
# curl http://localhost:8000/fourteen/on
# else
# curl http://host.docker.internal:8000/fourteen/on
# fi