Skip to content

debug: CI

debug: CI #2

Workflow file for this run

name: test
on:
workflow_dispatch:
push:
jobs:
testbed:
runs-on: ubuntu-latest
steps:
- name: Debug
run: |
echo `pwd`
ls -lR
- name: Install Rust toolchain
run: |
rustup default nightly
rustup update
- name: Build project
run: cargo build
- name: Run testbed
run: cargo run -- --api-token $API_TOKEN
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
- name: Read results.md
if: github.event_name == 'pull_request'
run: |
echo 'RESULTS_MD<<EOF' >> $GITHUB_ENV
cat results.md >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Comment Testbed result
uses: peter-evans/create-or-update-comment@v3
if: github.event_name == 'pull_request'
with:
body: ${{ env.RESULTS_MD }}