Skip to content

sync tests forth

sync tests forth #276

Workflow file for this run

# Run tests for tcl or markdown files modified in this PR.
name: tcl / pr
on: pull_request
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- name: Install Deps
run: |
sudo apt-get update && sudo apt-get -y install tcl-thread
- name: Checkout PR
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Run tests for changed/added exercises
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pr_endpoint=$(jq -r '"repos/\(.repository.full_name)/pulls/\(.pull_request.number)"' "$GITHUB_EVENT_PATH")
gh api "$pr_endpoint/files" --paginate --jq '
.[] |
select(.status == "added" or .status == "modified") |
select(.filename | match("\\.(md|tcl|test)$")) |
.filename
' | xargs -r bash bin/pr