Skip to content

Commit

Permalink
Fix contracts testing github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Sep 19, 2024
1 parent 5edc297 commit 7da7aba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Build and test
name: test

on:
push:
Expand All @@ -19,23 +19,20 @@ jobs:
test-contracts:
runs-on: ubuntu-latest

defaults:
run:
working-directory: proxy

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install PYTHON
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: scripts/requirements.txt

- name: Install NODE JS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
Expand Down Expand Up @@ -80,31 +77,28 @@ jobs:
test-predeployed:
runs-on: ubuntu-latest

defaults:
run:
working-directory: proxy

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install PYTHON
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: predeployed/test/requirements.txt

- name: Install NODE JS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Install project
run: |
yarn install
npm run compile
yarn compile
- name: Install python testing staff
run: pip3 install -r predeployed/test/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and publish
name: publish

on:
pull_request:
Expand Down

0 comments on commit 7da7aba

Please sign in to comment.