ci: add build/test checks #1
Workflow file for this run
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 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 Contracts Exclusively | |
run: cargo check --no-default-features --feature contract | |
- uses: actions/checkout@v3 | |
- name: Check Parachain Exclusively | |
run: cargo check --no-default-features --feature parachain | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test --verbose |