Merge pull request #76 from r0gue-io/weezy20-readme-patch #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test Pop-CLI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free up space on runner | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
cache-on-failure: true | |
cache-all-crates: true | |
- uses: actions/checkout@v3 | |
- name: Check Feature Contracts Excl. | |
run: cargo check --no-default-features --features contract | |
- uses: actions/checkout@v3 | |
- name: Check Features Parachain Excl. | |
run: cargo check --no-default-features --features parachain | |
- uses: actions/checkout@v3 | |
- name: Build default features | |
run: cargo build | |
- name: Run tests | |
run: cargo test --verbose |