Skip to content

Feat: GitHub actions and tests #2

Feat: GitHub actions and tests

Feat: GitHub actions and tests #2

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up environment
run: |
sudo apt-get update
sudo apt-get install -y flex bison libfl-dev
- name: Build the executable
run: |
make bin/tula-test
working-directory: ${{ github.workspace }}
- name: Run tests
run: |
echo "Running tests..."
./bin/tula-test ./examples/increment.tula
working-directory: ${{ github.workspace }}
- name: Clean up
run: make clean
working-directory: ${{ github.workspace }}