Skip to content

feat: replace Bash to C# Batch #232

feat: replace Bash to C# Batch

feat: replace Bash to C# Batch #232

name: Test benchmark-runnable
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
issue_comment:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/benchmark-runnable
id: result
with:
username: foo
- uses: ./.github/actions/benchmark-runnable
id: result2
with:
username: mayuki
- name: Test
run: |
echo "DEBUG: check-metas: ${{ steps.result.outputs.authorized }}"
echo -n "FACT: foo is not allowed. "
if [[ "${{ steps.result.outputs.authorized }}" != "true" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi
echo -n "FACT: mayuki is allowed. "
if [[ "${{ steps.result2.outputs.authorized }}" == "true" ]]; then echo "[O PASS]"; else echo "[X FAIL]" && exit 1; fi