Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
ignore:
- dependency-name: "ba-st-actions/pharo-ci"
groups:
github-actions:
patterns:
- "*"
27 changes: 7 additions & 20 deletions .github/workflows/loading-groups.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: Baseline Groups
name: Pharo Groups Loading
on:
- push
- pull_request
- workflow_dispatch
jobs:
group-loading:
runs-on: ubuntu-latest
group-loading:
name: ${{ matrix.load-spec }}
strategy:
fail-fast: false
matrix:
smalltalk:
- Pharo64-10
- Pharo64-11
- Pharo64-12
- Pharo64-13
matrix:
load-spec:
- core
- sqlite3
Expand All @@ -23,14 +18,6 @@ jobs:
- tests
- tools
- development
name: Baseline Groups / ${{ matrix.smalltalk }} + ${{ matrix.load-spec }}
steps:
- uses: actions/checkout@v4
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- name: Load group in image
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/loading.${{ matrix.load-spec }}.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
uses: ./.github/workflows/loading-pharo-group.yml
with:
load-spec: ${{ matrix.load-spec }}
52 changes: 52 additions & 0 deletions .github/workflows/loading-pharo-group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Reusable Baseline groups
on:
workflow_call:
inputs:
load-spec:
required: true
type: string
jobs:
group-loading-pharo-10:
runs-on: ubuntu-latest
name: Pharo64-10
steps:
- uses: actions/checkout@v6
- uses: ba-st-actions/pharo-ci@v10
with:
spec: .smalltalkci/.loading.${{ inputs.load-spec }}.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
group-loading-pharo-11:
runs-on: ubuntu-latest
name: Pharo64-11
steps:
- uses: actions/checkout@v6
- uses: ba-st-actions/pharo-ci@v11
with:
spec: .smalltalkci/.loading.${{ inputs.load-spec }}.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
group-loading-pharo-12:
runs-on: ubuntu-latest
name: Pharo64-12
steps:
- uses: actions/checkout@v6
- uses: ba-st-actions/pharo-ci@v12
with:
spec: .smalltalkci/.loading.${{ inputs.load-spec }}.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
group-loading-pharo-13:
runs-on: ubuntu-latest
name: Pharo64-13
steps:
- uses: actions/checkout@v6
- uses: ba-st-actions/pharo-ci@v13
with:
spec: .smalltalkci/.loading.${{ inputs.load-spec }}.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
6 changes: 3 additions & 3 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
name: runner / markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: markdownlint
uses: reviewdog/action-markdownlint@v0.1
uses: reviewdog/action-markdownlint@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
fail_on_error: true
reporter: github-pr-review
reporter: github-pr-review
80 changes: 63 additions & 17 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,78 @@
name: Unit Tests
name: Pharo Unit Tests
on:
- push
- pull_request
- workflow_dispatch
jobs:
build:
unit-tests-pharo-10:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk:
- Pharo64-10
- Pharo64-11
- Pharo64-12
- Pharo64-13
name: Unit Tests / ${{ matrix.smalltalk }}
name: Pharo64-10
steps:
- uses: actions/checkout@v4
- name: Set up Smalltalk CI
uses: hpi-swa/setup-smalltalkCI@v1
- uses: actions/checkout@v6
- name: Load Image and Run Tests
uses: ba-st-actions/pharo-ci@v10
with:
spec: .smalltalkci/.unit-tests.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
name: Unit-Tests-Pharo-10
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
unit-tests-pharo-11:
runs-on: ubuntu-latest
name: Pharo64-11
steps:
- uses: actions/checkout@v6
- name: Load Image and Run Tests
uses: ba-st-actions/pharo-ci@v11
with:
spec: .smalltalkci/.unit-tests.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
smalltalk-image: ${{ matrix.smalltalk }}
name: Unit-Tests-Pharo-11
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
unit-tests-pharo-12:
runs-on: ubuntu-latest
name: Pharo64-12
steps:
- uses: actions/checkout@v6
- name: Load Image and Run Tests
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/unit-tests.ston
uses: ba-st-actions/pharo-ci@v12
with:
spec: .smalltalkci/.unit-tests.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
name: Unit-Tests-Pharo-12
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
unit-tests-pharo-13:
runs-on: ubuntu-latest
name: Pharo64-13
steps:
- uses: actions/checkout@v6
- name: Load Image and Run Tests
uses: ba-st-actions/pharo-ci@v13
with:
spec: .smalltalkci/.unit-tests.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v6
with:
name: Unit-Tests-${{matrix.smalltalk}}
name: Unit-Tests-Pharo-13
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2025 Mercap Software
Copyright (c) 2022-2026 Mercap Software

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BaselineOfPersistentAPISkeleton >> projectClass [
BaselineOfPersistentAPISkeleton >> setUpDependencies: spec [

spec
baseline: 'Stargate' with: [ spec repository: 'github://ba-st/Stargate:v11' ];
baseline: 'Stargate' with: [ spec repository: 'github://ba-st/Stargate:v12' ];
project: 'Stargate-Deployment' copyFrom: 'Stargate' with: [ spec loads: 'Deployment' ];
project: 'Stargate-SUnit'
copyFrom: 'Stargate'
Expand All @@ -42,25 +42,25 @@ BaselineOfPersistentAPISkeleton >> setUpDependencies: spec [
project: 'Stargate-Examples' copyFrom: 'Stargate' with: [ spec loads: 'Examples' ].

spec
baseline: 'StargateConsul' with: [ spec repository: 'github://ba-st/Stargate-Consul:v7' ];
baseline: 'StargateConsul' with: [ spec repository: 'github://ba-st/Stargate-Consul:v8' ];
project: 'Stargate-Consul-Deployment'
copyFrom: 'StargateConsul'
with: [ spec loads: 'Deployment' ].

spec
baseline: 'Sagan' with: [ spec repository: 'github://ba-st/Sagan:v10' ];
baseline: 'Sagan' with: [ spec repository: 'github://ba-st/Sagan:v12' ];
project: 'Sagan-SQLite' copyFrom: 'Sagan' with: [ spec loads: 'SQLite' ];
project: 'Sagan-PostgreSQL' copyFrom: 'Sagan' with: [ spec loads: 'PostgreSQL' ].

spec
baseline: 'Launchpad' with: [ spec repository: 'github://ba-st/Launchpad:v7' ];
baseline: 'Launchpad' with: [ spec repository: 'github://ba-st/Launchpad:v8' ];
project: 'Launchpad-Deployment' copyFrom: 'Launchpad' with: [ spec loads: 'Deployment' ];
project: 'Launchpad-SUnit'
copyFrom: 'Launchpad'
with: [ spec loads: 'Dependent-SUnit-Extensions' ].

spec
baseline: 'Kepler' with: [ spec repository: 'github://ba-st/Kepler:v7' ];
baseline: 'Kepler' with: [ spec repository: 'github://ba-st/Kepler:v8' ];
project: 'Kepler-Core' copyFrom: 'Kepler' with: [ spec loads: 'Core' ];
project: 'Kepler-SUnit' copyFrom: 'Kepler' with: [ spec loads: 'Dependent-SUnit-Extensions' ]
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Class {
#name : 'CreateEmptyRDBMSApplicationTest',
#superclass : 'TestCase',
#superclass : 'LaunchpadTest',
#category : 'Persistent-API-Skeleton-Tests',
#package : 'Persistent-API-Skeleton-Tests'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A PersistentAPIConfigurationTest is a test class for testing the behavior of Per
"
Class {
#name : 'PersistentAPIConfigurationTest',
#superclass : 'TestCase',
#superclass : 'LaunchpadTest',
#category : 'Persistent-API-Skeleton-Tests',
#package : 'Persistent-API-Skeleton-Tests'
}
Expand Down
10 changes: 4 additions & 6 deletions source/Persistent-API-Skeleton/PersistentAPIApplication.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,16 @@ PersistentAPIApplication >> basicStop [
]

{ #category : 'private - activation/deactivation' }
PersistentAPIApplication >> configureAllowedOriginsTo: api [
PersistentAPIApplication >> configureAllowedOrigins [

self stargateConfiguration allowedOrigins value: api
self withAPIDo: [ :api | self stargateConfiguration allowedOrigins value: api ]
]

{ #category : 'private - activation/deactivation' }
PersistentAPIApplication >> createAPI [

| api |
api := super createAPI.
self configureAllowedOriginsTo: api.
^ api
super createAPI.
self configureAllowedOrigins
]

{ #category : 'private - activation/deactivation' }
Expand Down
Loading