Skip to content

Commit

Permalink
chore: integration test in ci for all env
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexD10S committed Jul 1, 2024
1 parent 622ee2c commit 594df2c
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 44 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,28 @@ jobs:
files: codecov.json
fail_ci_if_error: true

contract-integration-tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: "./.github/actions/init"
with:
git-user: ${{ env.GITHUB_ACTOR }}

- name: Run integration tests
run: cargo test --no-default-features --features contract --test contract

parachain-integration-tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: "./.github/actions/init"
with:
git-user: ${{ env.GITHUB_ACTOR }}

- name: Run integration tests
run: cargo test --no-default-features --features parachain --test parachain
# contract-integration-tests:
# needs: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - uses: "./.github/actions/init"
# with:
# git-user: ${{ env.GITHUB_ACTOR }}

# - name: Run integration tests
# run: cargo test --no-default-features --features contract --test contract

# parachain-integration-tests:
# needs: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - uses: "./.github/actions/init"
# with:
# git-user: ${{ env.GITHUB_ACTOR }}

# - name: Run integration tests
# run: cargo test --no-default-features --features parachain --test parachain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pop install
name: pop install & integration-tests

on:
push:
Expand All @@ -11,23 +11,27 @@ defaults:
shell: bash

jobs:
arch:
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: pacman -Syu --needed --noconfirm cmake curl git base-devel
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install Pop
run: |
. "$HOME/.cargo/env"
cargo install --locked --no-default-features --features contract,parachain --path ./crates/pop-cli
- name: Run Pop install
run: |
. "$HOME/.cargo/env"
pop install -y
# arch:
# runs-on: ubuntu-latest
# container: archlinux:latest
# steps:
# - uses: actions/checkout@v4
# - name: Install prerequisites
# run: pacman -Syu --needed --noconfirm cmake curl git base-devel
# - name: Install Rust
# run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# - name: Install Pop
# run: |
# . "$HOME/.cargo/env"
# cargo install --locked --no-default-features --features contract,parachain --path ./crates/pop-cli
# - name: Run Pop install
# run: |
# . "$HOME/.cargo/env"
# pop install -y
# - name: Run integration tests
# run: |
# . "$HOME/.cargo/env"
# cargo test --no-default-features --features contract --test contract
debian:
runs-on: ubuntu-latest
container: debian
Expand All @@ -45,6 +49,14 @@ jobs:
run: |
. "$HOME/.cargo/env"
pop install -y
- name: Run parachain integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features parachain --test parachain
- name: Run contracts integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features contract --test contract
macos:
runs-on: macos-latest
steps:
Expand All @@ -61,6 +73,14 @@ jobs:
run: |
. "$HOME/.cargo/env"
pop install -y
- name: Run parachain integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features parachain --test parachain
- name: Run contracts integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features contract --test contract
redhat:
runs-on: ubuntu-latest
container: redhat/ubi8
Expand All @@ -78,6 +98,14 @@ jobs:
run: |
. "$HOME/.cargo/env"
pop install -y
- name: Run parachain integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features parachain --test parachain
- name: Run contracts integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features contract --test contract
ubuntu:
runs-on: ubuntu-latest
container: ubuntu
Expand All @@ -94,4 +122,12 @@ jobs:
- name: Run Pop install
run: |
. "$HOME/.cargo/env"
pop install -y
pop install -y
- name: Run parachain integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features parachain --test parachain
- name: Run contracts integration tests
run: |
. "$HOME/.cargo/env"
cargo test --no-default-features --features contract --test contract

0 comments on commit 594df2c

Please sign in to comment.