Skip to content

test: relocate integration tests #285

test: relocate integration tests

test: relocate integration tests #285

Workflow file for this run

name: Build & Test Pop-CLI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
GITHUB_ACTOR: pop-cli
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --all -- --check
build:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/init"
with:
git-user: ${{ env.GITHUB_ACTOR }}
- name: Check Feature Contracts Excl.
run: cargo check --no-default-features --features contract
- name: Check Features Parachain Excl.
run: cargo check --no-default-features --features parachain
- name: Build default features
run: cargo build
unit-tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/init"
with:
git-user: ${{ env.GITHUB_ACTOR }}
- name: Run unit tests
run: cargo test --lib
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 --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 --test parachain