Build in UTBot base_env #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build in UTBot base_env | |
on: | |
pull_request: | |
branches: [utbot-main] | |
push: | |
branches: [utbot-main] | |
workflow_run: | |
workflows: ["Clang Format"] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
container: | |
image: ghcr.io/unittestbot/utbotcpp/base_env:02-02-2022 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run build.sh | |
run: | | |
./build.sh | |
- name: Run tests | |
run: | | |
cd build && ninja check |