Skip to content

Trying to make testing bigger #541

Trying to make testing bigger

Trying to make testing bigger #541

---
name: "Testing known case studies"
on:
push:
branches:
- "master"
- "develop"
concurrency:
group: Testing known case studies
cancel-in-progress: true
jobs:
build-on-linux:
strategy:
matrix:
jabba_jdk: [temurin@17, amazon-corretto@17, zulu@17, microsoft@17]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: earthly/actions-setup@v1
with:
version: v0.7.8
- name: Test cases
run: |
cd ${{ github.workspace }}
earthly +dist-all --jabba_jdk="${{ matrix.jabba_jdk }}" --targets="x86_64-pc-windows-gnu x86_64-unknown-linux-musl"
- name: Cache-out outputs
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/dist
key: ${{ github.ref }}-dist
test-cases-linux:
strategy:
matrix:
jabba_jdk: [temurin@17, amazon-corretto@17, zulu@17, microsoft@17]
target: [x86_64-unknown-linux-musl]
runs-on: ubuntu-latest
needs: build-on-linux
steps:
- uses: actions/checkout@v3
- name: Cache-in outputs
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/dist
key: ${{ github.ref }}-dist
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: |
cd ${{ github.workspace }}
cp -r ${{ github.workspace }}/dist/x86_64-unknown-linux-musl/* .
mkdir -p /opt/jdk
curl -sL https://github.com/Jabba-Team/jabba/raw/main/install.sh | JABBA_COMMAND="install ${{ matrix.jabba_jdk }} -o /opt/jdk" bash
export JAVA_HOME=/opt/jdk
export PATH="$JAVA_HOME/bin:$PATH"
python -m pip install robotframework
python -m robot --exclude slow TestsBenchmark.robot
test-cases-win:
strategy:
matrix:
jabba_jdk: [temurin@17, amazon-corretto@17, zulu@17, microsoft@17]
runs-on: windows-latest
needs: build-on-linux
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: |
cd ${{ github.workspace }}
cp -r ${{ github.workspace }}/dist/x86_64-pc-windows-gnu/* .
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Expression (
Invoke-WebRequest https://github.com/Jabba-Team/jabba/raw/master/install.ps1 -UseBasicParsing
).Content
jabba install ${{ matrix.jabba_jdk }}
jabba alias default ${{ matrix.jabba_jdk }}
python -m pip install robotframework
python -m robot --exclude slow TestsBenchmark.robot