Skip to content

Do not run bonus part in non-bonus job #157

Do not run bonus part in non-bonus job

Do not run bonus part in non-bonus job #157

name: schedule-bonus
on: [pull_request, push, workflow_dispatch]
jobs:
schedule-bonus:
runs-on: ubuntu-latest
env:
path: homework/schedule/build
steps:
- name: Check out code
uses: actions/checkout@master
- name: Create build directory
run: mkdir ${{ env.path }}
- name: Compile
working-directory: ${{ env.path }}
run: |
cmake ..
make
- name: Run tests
working-directory: ${{ env.path }}
run: ./schedule-ut-bonus
template-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check if there is a template function in schedule.hpp
working-directory: .github/scripts
run: ./template_check.sh