Skip to content

Commit 237e4e2

Browse files
committed
Some improvements to CI
Run only on linux usually and on all OS only during releases + run tests on all branches and on all PR
1 parent d4c068e commit 237e4e2

File tree

2 files changed

+44
-19
lines changed

2 files changed

+44
-19
lines changed

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
env:
4+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5+
6+
on:
7+
release:
8+
types: [created, edited]
9+
10+
jobs:
11+
build:
12+
strategy:
13+
matrix:
14+
smalltalk: [ Pharo64-9.0, Pharo64-10 ]
15+
os: [ macos-latest, windows-latest, ubuntu-latest]
16+
runs-on: ${{ matrix.os }}
17+
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
18+
env:
19+
PROJECT_NAME: PolyMath-${{ matrix.smalltalk }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: hpi-swa/setup-smalltalkCI@v1
23+
with:
24+
smalltalk-version: ${{ matrix.smalltalk }}
25+
- run: smalltalkci -s ${{ matrix.smalltalk }}
26+
shell: bash
27+
timeout-minutes: 15

.github/workflows/smalltalk-ci.yml

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
1-
name: CI matrix
1+
name: CI
2+
3+
env:
4+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25

36
on:
47
push:
5-
branches: [ master ]
8+
branches:
9+
- '**'
610
pull_request:
7-
branches: [ master ]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
11+
types: [assigned, opened, synchronize, reopened]
1112

12-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1313
jobs:
1414
build:
15+
runs-on: ubuntu-latest
16+
env:
17+
PROJECT_NAME: PolyMath-${{ matrix.smalltalk }}
1518
strategy:
1619
matrix:
17-
os: [ macos-latest, windows-latest, ubuntu-latest]
18-
smalltalk: [ Pharo64-9.0, Pharo64-10]
19-
runs-on: ${{ matrix.os }}
20-
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
20+
smalltalk: [ Pharo64-9.0, Pharo64-10 ]
21+
name: ${{ matrix.smalltalk }}
2122
steps:
2223
- uses: actions/checkout@v2
23-
- name: Setup smalltalkCI
24-
uses: hpi-swa/setup-smalltalkCI@v1
24+
- uses: hpi-swa/setup-smalltalkCI@v1
2525
with:
26-
smalltalk-image: ${{ matrix.smalltalk }}
27-
- name: Load Image and Run Tests
28-
run: smalltalkci -s ${{ matrix.smalltalk }}
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
timeout-minutes: 15
26+
smalltalk-version: ${{ matrix.smalltalk }}
27+
- run: smalltalkci -s ${{ matrix.smalltalk }}
28+
shell: bash
29+
timeout-minutes: 15

0 commit comments

Comments
 (0)