Continuous integration #12
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: Continuous integration | |
permissions: | |
contents: read | |
on: [pull_request, push] | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: [self-hosted, linux] | |
strategy: | |
matrix: | |
metadata: | |
- parachain-metadata-interlay | |
- parachain-metadata-kintsugi | |
- parachain-metadata-testnet | |
- standalone-metadata | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --prune --unshallow | |
- name: Install System Dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y \ | |
cmake pkg-config libssl-dev git clang curl libc6-dev | |
- name: Set variables | |
run: | | |
echo "TOOLCHAIN=$(rustup show active-toolchain | cut -d " " -f1)" >> $GITHUB_ENV | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.TOOLCHAIN }} | |
override: true | |
components: rustfmt | |
- name: fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- run: rustup component add clippy | |
- name: clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --release --workspace --features ${{ matrix.metadata }} | |
- name: check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --release --workspace --features ${{ matrix.metadata }} | |
- name: test | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: info,regalloc=warn | |
with: | |
command: test | |
args: --release --workspace --features ${{ matrix.metadata }} | |
- name: upload artifacts - vault | |
uses: actions/upload-artifact@v2 | |
with: | |
name: vault-${{ matrix.metadata }}-${{ github.sha }} | |
path: target/release/vault | |
retention-days: 10 | |
- name: upload artifacts - oracle | |
uses: actions/upload-artifact@v2 | |
with: | |
name: oracle-${{ matrix.metadata }}-${{ github.sha }} | |
path: target/release/oracle | |
retention-days: 10 | |
- name: upload artifacts - faucet | |
uses: actions/upload-artifact@v2 | |
with: | |
name: faucet-${{ matrix.metadata }}-${{ github.sha }} | |
path: target/release/faucet | |
retention-days: 10 |