Testing grounds for the GitHub action setup-lazarus
Note: For supported Lazarus versions and the associated FPC version consult the link above.
steps:
- uses: actions/checkout@v2
- uses: gcarreno/setup-lazarus@v2.2.0
with:
lazarus-version: "dist"
include-packages: "Synapse 40.1"
- run: lazbuild YourTestProject.lpi
- run: YourTestProject
Test
name: build
on:
pull_request:
push:
paths-ignore:
- "README.md"
branches:
- master
- releases/*
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-18.04,ubuntu-latest]
lazarus-versions: [dist, 2.0.6]
steps:
- uses: actions/checkout@v2
- name: Install Lazarus
uses: gcarreno/setup-lazarus@v2.2.0
with:
lazarus-version: ${{ matrix.lazarus-versions }}
include-packages: "Synapse 40.1"
- name: Build the Main Application
run: lazbuild "src/lazaruswithgithubactions.lpi"
- name: Build the Unit Tests Application
run: lazbuild "tests/testconsoleapplication.lpi"
- name: Run the Unit Tests Application
run: bin/testconsoleapplication "--all" "--format=plain"