Skip to content

Commit

Permalink
Compile and run fptest test framework on Linux
Browse files Browse the repository at this point in the history
- trigger GHAction on test branch (temporarily)
- run on Linux only (temporarily)
- removed old tests from workflow
  • Loading branch information
Free-Pascal-meets-SDL-Website committed Jan 1, 2024
1 parent 1efa7f4 commit 95d7526
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: CI

on:
push:
branches: [ master ]
branches: [ master, use-fptest ]
pull_request:
branches: [ master ]

jobs:
macos-11-big-sur:
# skip job temporarily
if: false
runs-on: macos-11
steps:
- name: Install FPC
Expand Down Expand Up @@ -112,25 +114,18 @@ jobs:
verbosity: ewnh
- name: Install SDL2 library
run: sudo apt-get install libsdl2-dev
- name: Test 1 - Compile Init Test
- name: Compile SDL2-for-Pascal Test Framework (fptest) and Test Cases
uses: suve/[email protected]
with:
source: tests/testinit.pas
source: tests/sdl2forpascaltests.pas
flags: Fuunits Futests/fptest/src Futests/fptest/3rdparty/epiktimer
verbosity: ewnh
- name: Test 1 - Run Init Test
- name: Run SDL2-for-Pascal Tests
run: |
mkdir ~/tmp
export XDG_RUNTIME_DIR=~/tmp
./tests/testinit
- name: Test 2 - Compile Version Test
uses: suve/[email protected]
with:
source: tests/testversion.pas
verbosity: ewnh
- name: Test 2 - Run Version Test
run: |
./tests/testversion
./tests/sdl2forpascaltests
windows-2022:
# skip job temporarily
if: false
runs-on: windows-2022
steps:
- name: Install Lazarus
Expand Down

0 comments on commit 95d7526

Please sign in to comment.