-
Notifications
You must be signed in to change notification settings - Fork 71
49 lines (47 loc) · 1.69 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: smalltalkCI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
smalltalk: [ Pharo64-11, Pharo64-10 ]
experimental: [ false ]
include:
- smalltalk: Pharo64-12
experimental: true
continue-on-error: ${{ matrix.experimental }}
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v4
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Install Chrome
run: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get -y install google-chrome-stable
- name: Install selenium
run: npm install selenium-standalone && npx selenium-standalone install && npx selenium-standalone start &
- name: Run tests
run: smalltalkci -s ${{ matrix.smalltalk }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
timeout-minutes: 20
- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Screenshots Test Failures ${{ matrix.smalltalk }}
path: ${{ env.SMALLTALK_CI_BUILD }}/*.png
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.smalltalk }}
token: ${{ secrets.CODECOV_TOKEN }}