Skip to content

Add test workflow for github actions #4

Add test workflow for github actions

Add test workflow for github actions #4

Workflow file for this run

name: Build and test ccronexpr
on:
push:
branches:
- master
tags:
- test
- '[0-9]+.[0-9]+.[0-9]'
pull_request:
types: [opened, synchronize, labeled, reopened]
workflow_dispatch:
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Make build dir
run: mkdir -p "${{ github.workspace }}/build"
- name: Build with CMAKE
run: |
ls ${{ github.workspace }}
cmake ${{ github.workspace }}
cmake --build "${{ github.workspace }}/build" --target ccronexpr
- name: Run test executable
run: "${{ github.workspace }}/build/ccronexpr"