Skip to content

Commit

Permalink
Update dependencies and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Feb 23, 2024
1 parent 2c82d11 commit 053ab83
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 31 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Integration Tests

on: [push,pull_request,workflow_dispatch]

on:
- push
- pull_request
- workflow_dispatch
jobs:
integration-tests:
runs-on: ubuntu-latest
name: Integration Tests
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run tests using Docker
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/loading-groups.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
name: Baseline groups

on: [push,pull_request,workflow_dispatch]

on:
- push
- pull_request
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
smalltalk: [ Pharo64-11, Pharo64-10, Pharo64-9.0, Pharo64-8.0 ]
load-spec: [ core, api-client, service-discovery, deployment, examples, dependent-sunit-extensions]
smalltalk:
- Pharo64-11
- Pharo64-10
load-spec:
- core
- api-client
- service-discovery
- deployment
- examples
- dependent-sunit-extensions
name: ${{ matrix.smalltalk }} + ${{ matrix.load-spec }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Markdown Lint
on: [push,pull_request,workflow_dispatch]
on:
- push
- pull_request
- workflow_dispatch
jobs:
remark-lint:
name: runner / markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: markdownlint
uses: reviewdog/action-markdownlint@v0
with:
Expand Down
26 changes: 17 additions & 9 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Unit Tests

on: [push,pull_request,workflow_dispatch]

on:
- push
- pull_request
- workflow_dispatch
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Pharo64-11, Pharo64-10, Pharo64-8.0, Pharo64-9.0 ]
smalltalk:
- Pharo64-11
- Pharo64-10
name: ${{ matrix.smalltalk }}
services:
httpbin:
image: fortizpenaloza/httpbin
ports:
- 127.0.0.1:80:80
memcached:
image: memcached:1.6.7-alpine
ports:
- 127.0.0.1:11211:11211
steps:
- uses: actions/checkout@v3
- name: Start httpbin
run: docker run -d -p 127.0.0.1:80:80 fortizpenaloza/httpbin
- name: Start memcached
run: docker run -d -p 127.0.0.1:11211:11211 memcached:1.6.7-alpine
- uses: actions/checkout@v4
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
Expand Down
13 changes: 4 additions & 9 deletions api-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ RUN pharo metacello install gitlocal://. BaselineOfSuperluminal --groups=Example

# Stage 2: Copy the resulting Pharo.image with our project loaded
# into a new docker image with just the vm
FROM ghcr.io/ba-st/launchpad:v4
FROM ghcr.io/ba-st/launchpad:v5

USER root
COPY --from=loader --chown=pharo:users /opt/pharo/Pharo.image ./
COPY --from=loader --chown=pharo:users /opt/pharo/Pharo*.sources ./

COPY --from=loader /opt/pharo/Pharo.image ./
COPY --from=loader /opt/pharo/Pharo*.sources ./

RUN mkdir logs \
&& chown --recursive pharo:users /opt/pharo

USER pharo
RUN mkdir logs

CMD ["launchpad-start", "superluminal-service-discovery", "--retry-delay-in-ms=10000"]
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ BaselineOfSuperluminal >> setUpDependencies: spec [
project: 'Teapot-Deployment' copyFrom: 'Teapot' with: [ spec loads: 'Deployment' ].

spec
baseline: 'Teachable' with: [ spec repository: 'github://astares/Pharo-Teachable:master' ];
baseline: 'Teachable' with: [ spec repository: 'github://ba-st-dependencies/Teachable:v3' ];
project: 'Teachable-Core' copyFrom: 'Teachable' with: [ spec loads: 'Core' ].

spec
Expand Down

0 comments on commit 053ab83

Please sign in to comment.