MTNMomo Test #14
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: Testing the application | |
run-name: MTNMomo 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 | |
run: cargo test | |
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/* |