fix legacy tests #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
pharo-version: [ Pharo64-10, Pharo64-11, Pharo64-12 ] | |
ston: [ .smalltalk.ston ] | |
mongodb-version: [ 5, 6 ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.ston }}, ${{ matrix.pharo-version }}, ${{ matrix.mongodb-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create mongoDB Docker container | |
run: sudo docker run -d -p 27017:27017 mongo:${{ matrix.mongodb-version }} | |
# - name: Test mongodb | |
# run: curl http://localhost:27017 | |
# - name: Log mongodb Version | |
# run: mongo --eval 'db.version();' | |
# - name: Create test user | |
# run: "mongo test --eval 'db.createUser({ \"user\": \"pharounittest\", \"pwd\": \"test\", roles: [] });'" | |
- name: Setup SmalltalkCI | |
uses: hpi-swa/setup-smalltalkCI@v1 | |
with: | |
smalltalk-image: ${{ matrix.pharo-version }} | |
- name: Get Pharo and Run Tests | |
run: smalltalkci -s ${{ matrix.pharo-version }} ${{ matrix.ston }} | |
shell: bash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
timeout-minutes: 40 | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
name: ${{matrix.os}}-${{ matrix.pharo-version }} | |
token: ${{ secrets.CODECOV_TOKEN }} |