Skip to content

[ci] Add workflow_dispatch in the "on" property #32

[ci] Add workflow_dispatch in the "on" property

[ci] Add workflow_dispatch in the "on" property #32

Workflow file for this run

name: Coverage
on: [pull_request, push, workflow_dispatch]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake -DTESTS=1 -DGCOV=1 $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: ./mylang -rt
- name: Upload coverage data
working-directory: ${{github.workspace}}/build
shell: bash
run: bash <(curl -s https://codecov.io/bash)