Skip to content

feat(comment): support single-line simple prefix comments #20

feat(comment): support single-line simple prefix comments

feat(comment): support single-line simple prefix comments #20

Workflow file for this run

name: tdd
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
new_tests_against_old_binary:
if: ${{
startsWith(github.event.pull_request.title, 'fix')
|| startsWith(github.event.pull_request.title, 'bug')
|| startsWith(github.event.pull_request.title, 'feat')
}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull all refs
run: git fetch --all
- name: Checkout base
run: git reset --hard ${{ github.event.pull_request.base.sha }}
- name: Build old binary
run: cargo build --release --verbose
- name: Checkout new tests
run: git checkout ${{ github.sha }} -- tests
- name: Run tests
run: |
if ! cargo test --verbose; then
exit 0
else
echo "All tests passed, most likely new code is not covered"
exit 1
fi