Skip to content

Commit

Permalink
ci: add support for GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jaburjak committed Apr 30, 2024
1 parent 448b65a commit a8e1e4c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- run: |
mkdir test/
mv build/openponk-class-editor-linux-76c3099.zip test/openponk.zip
cd test/
unzip -q openponk.zip
cd openponk-class-editor-linux/
./pharo/bin/pharo --headless image/openponk-class-editor.image eval --save "Metacello new baseline: 'Moco'; repository: 'tonel://../../src'; load."
mv ../../build/test.sh ./
./test.sh
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ image: debian:12
stages:
- test

build:
test:
stage: test
before_script:
- apt-get -q update
Expand All @@ -15,4 +15,5 @@ build:
- unzip -q openponk.zip
- cd openponk-class-editor-linux/
- "./pharo/bin/pharo --headless image/openponk-class-editor.image eval --save \"Metacello new baseline: 'Moco'; repository: 'tonel://../../src'; load.\""
- "./pharo/bin/pharo --headless image/openponk-class-editor.image eval \"| r | r := MocoOpenPonkTestSuite new run. (r tests size) = (r passed size)\" | grep true"
- mv ../../build/test.sh ./
- ./test.sh
7 changes: 7 additions & 0 deletions build/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

SUITES=("MocoOpenPonkTestSuite")

for suite in "${SUITES[@]}"; do
./pharo/bin/pharo --headless image/openponk-class-editor.image eval "| r | r := $suite new run. (r tests size) = (r passed size)" | grep true
done

0 comments on commit a8e1e4c

Please sign in to comment.