Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e71115d
wait for finalization
fbielejec Oct 26, 2022
75ed49b
say no to oncurrent jobs
fbielejec Oct 26, 2022
4319384
trigger, remove labels
fbielejec Oct 26, 2022
3eca2eb
OK
fbielejec Oct 26, 2022
3992fe2
Merge branch 'benjamin' into fix-e2e
fbielejec Oct 26, 2022
a01b1fd
wtf
fbielejec Oct 26, 2022
d8cd778
show networks
fbielejec Oct 26, 2022
8841ccc
rerun
fbielejec Oct 26, 2022
9e6f1ab
short lived wf
fbielejec Oct 26, 2022
6a39be2
run it
fbielejec Oct 26, 2022
86b52a4
need code
fbielejec Oct 26, 2022
2bcced3
just use host
fbielejec Oct 26, 2022
55aaaef
mhm
fbielejec Oct 26, 2022
c4f86a0
co tu sie
fbielejec Oct 26, 2022
b16e4fe
debug
fbielejec Oct 26, 2022
24cd7ed
get a shell
fbielejec Oct 26, 2022
2607a3d
add missing flag
fbielejec Oct 26, 2022
fe78a4f
aaaaaa
fbielejec Oct 26, 2022
b827a29
get shell
fbielejec Oct 26, 2022
44a72db
show me the logs
fbielejec Oct 26, 2022
3c4a3c7
docke rnet
fbielejec Oct 26, 2022
52d6a89
fixit
fbielejec Oct 26, 2022
ed450be
off you go
fbielejec Oct 26, 2022
0d767f6
yesh
fbielejec Oct 26, 2022
e363769
test workflow dispatch
fbielejec Oct 26, 2022
47c790a
deployment triggered by tests
fbielejec Oct 26, 2022
b83f7af
cleanup
fbielejec Oct 26, 2022
698428f
TODOs
fbielejec Oct 27, 2022
5aff6c1
try the trigger
fbielejec Oct 27, 2022
8d41a20
add dispatch trigger
fbielejec Oct 27, 2022
7fbae16
Blend contracts e2e tests and deployment workflows into one workflow
keenbytes Oct 27, 2022
b1a7d6f
Oops! Remove duplicated workflow
keenbytes Oct 27, 2022
6277e75
addressing comments
fbielejec Oct 27, 2022
6a282a6
Add triggering indexer deployment workflow
keenbytes Oct 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yesh
  • Loading branch information
fbielejec committed Oct 26, 2022
commit 0d767f6c955cb7f1632331cfaaec5e224889435d
118 changes: 59 additions & 59 deletions .github/workflows/e2e-tests-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,44 +27,44 @@ jobs:
RUST_BACKTRACE: full
steps:

# - name: Install binaryen
# run: |
# wget https://github.com/WebAssembly/binaryen/releases/download/version_101/binaryen-version_101-x86_64-linux.tar.gz
# tar xvzf binaryen-version_101-x86_64-linux.tar.gz
# cd binaryen-version_101
# sudo cp -r bin/* /bin
# sudo cp -r include/* /usr/include
# sudo cp -r lib64/* /lib64

# - name: Display binaryen version
# shell: bash
# run: wasm-opt --version
- name: Install binaryen
run: |
wget https://github.com/WebAssembly/binaryen/releases/download/version_101/binaryen-version_101-x86_64-linux.tar.gz
tar xvzf binaryen-version_101-x86_64-linux.tar.gz
cd binaryen-version_101
sudo cp -r bin/* /bin
sudo cp -r include/* /usr/include
sudo cp -r lib64/* /lib64

- name: Display binaryen version
shell: bash
run: wasm-opt --version

- name: Checkout Source code
uses: actions/checkout@v3

# - name: Install Rust Toolchain
# uses: actions-rs/toolchain@v1
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1

# - name: Install WASM target
# run: rustup target add wasm32-unknown-unknown
- name: Install WASM target
run: rustup target add wasm32-unknown-unknown

# - name: Install rust-src
# run: rustup component add rust-src
- name: Install rust-src
run: rustup component add rust-src

# - name: Restore cache
# uses: ./.github/actions/restore-cache
# with:
# target-key: e2e-contracts
# cargo-key: e2e-contracts
# cache-version: v3
# cargo-targets: e2e-tests-contracts/target/
- name: Restore cache
uses: ./.github/actions/restore-cache
with:
target-key: e2e-contracts
cargo-key: e2e-contracts
cache-version: v3
cargo-targets: e2e-tests-contracts/target/

# - name: Install cargo-contract
# run: |
# cargo install cargo-dylint dylint-link --force
# # revision merging Hans's PR changes [fix for node URL parsing ]
# cargo install --git https://github.com/paritytech/cargo-contract.git --rev 2b1758756de59bd81e7bed5f8429d364f281cb9a --force
- name: Install cargo-contract
run: |
cargo install cargo-dylint dylint-link --force
# revision merging Hans's PR changes [fix for node URL parsing ]
cargo install --git https://github.com/paritytech/cargo-contract.git --rev 2b1758756de59bd81e7bed5f8429d364f281cb9a --force

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -93,12 +93,12 @@ jobs:
run: |
docker logs smartnode --follow &

- name: Debug
shell: bash
run: |
sleep 2
docker ps
docker network inspect node-network
# - name: Debug
# shell: bash
# run: |
# sleep 2
# docker ps
# docker network inspect node-network

# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
Expand All @@ -110,26 +110,26 @@ jobs:
.github/scripts/check_finalization.sh
timeout-minutes: 10

# - name: Run e2e tests
# shell: bash
# run: |
# source ./contracts/env/dev && ./contracts/scripts/deploy.sh && ./contracts/scripts/test.sh

# - name: Cleanup cache
# uses: ./.github/actions/post-cache

# slack:
# name: Slack notification
# runs-on: ubuntu-latest
# needs: [run-tests]
# if: always()
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2

# - name: Send Slack message
# uses: ./.github/actions/slack-notification
# with:
# notify-on: "failure"
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Run e2e tests
shell: bash
run: |
source ./contracts/env/dev && ./contracts/scripts/deploy.sh && ./contracts/scripts/test.sh

- name: Cleanup cache
uses: ./.github/actions/post-cache

slack:
name: Slack notification
runs-on: ubuntu-latest
needs: [run-tests]
if: always()
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Send Slack message
uses: ./.github/actions/slack-notification
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}