Skip to content

try fix3

try fix3 #6

name: Functional Tests
on: [push]
jobs:
build:
name: Run Cucumber Tests on Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Download OR-Tools
run: |
Invoke-WebRequest -Uri "https://github.com/google/or-tools/releases/download/v9.5/ortools-win32-x86-64-9.5.2237.jar" -OutFile "${PWD}\\or-tools.jar"
- name: Install OR-Tools
run: (mkdir -p ${PWD}\\farao-dep\\runtime\\ortools\\lib\\) `
-and (unzip -j ${PWD}\\or-tools.jar -d ${PWD}\\farao-dep\\runtime\\ortools\\lib\\ ortools-win32-x86-64/jniortools.dll) `
-and (rm -Force ${PWD}\\or-tools.jar)
- name: Install OpenRAO with Maven
run: mvn --batch-mode install -DskipTests=true
- name: Setup Path
run: $env:Path+=';${PWD}\\farao-dep\\runtime\\ortools\\lib'
- name: Run cucumber tests with Maven
run: mvn test -pl tests