Skip to content

build_test

build_test #45

Workflow file for this run

name: build
run-name: build_test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install nitghly
run: |
rustup install nightly
rustup default nightly
- name: test
env:
MTN_URL: ${{ secrets.MTN_URL }}
MTN_COLLECTION_PRIMARY_KEY: ${{ secrets.MTN_COLLECTION_PRIMARY_KEY }}
MTN_COLLECTION_SECONDARY_KEY: ${{ secrets.MTN_COLLECTION_SECONDARY_KEY }}
MTN_DISBURSEMENT_PRIMARY_KEY: ${{ secrets.MTN_DISBURSEMENT_PRIMARY_KEY}}
MTN_DISBURSEMENT_SECONDARY_KEY: ${{ secrets.MTN_DISBURSEMENT_SECONDARY_KEY}}
MTN_REMITTANCE_PRIMARY_KEY: ${{ secrets.MTN_REMITTANCE_PRIMARY_KEY }}
MTN_REMITTANCE_SECONDARY_KEY: ${{ secrets.MTN_REMITTANCE_SECONDARY_KEY }}
MTN_API_USER: ${{ secrets.MTN_API_USER}}
MTN_API_KEY: ${{ secrets.MTN_API_KEY}}
run: |
cargo test -- --test-threads=1 --nocapture
# release:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Create Release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# tag=$(git describe --tags --abbrev=0)
# gh release create $tag ./target/release/*