add v0.111.0 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: Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: | | |
sh prepare.sh | |
cd feature | |
cargo +nightly test -- --format=json -Z unstable-options --report-time > test-report.json | |
markdown-test-report test-report.json -o test-report.md | |
- name: Upload to Qiniu | |
if: failure() | |
uses: gpBlockchain/upload-to-qiniu-action@main | |
with: | |
access_key: ${{ secrets.ACCESS_KEY }} | |
secret_key: ${{ secrets.SECRET_KEY }} | |
bucket_name: acceptance-test | |
key: ckb-rust-integration-test/test-report.md | |
local_file: feature/test-report.md | |
- name: print download url | |
if: failure() | |
run: | | |
log_message="https://github-test-logs.ckbapp.dev/ckb-rust-integration-test/test-report.md" | |
echo "::set-output name=log_message::$log_message" | |
echo $log_message | |