Install docker-compose #11
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: Continuous-Integration | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: ~ | |
jobs: | |
build: | |
name: Execute Tests | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v1 | |
- name: Build solution | |
shell: cmd | |
run: mvn clean package -DskipTests -Dstyle.color=always | |
- name: Install Docker Compose | |
run: | | |
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Windows-x86_64.exe" -o $env:ProgramFiles\Docker\docker-compose.exe | |
$env:Path += ";$env:ProgramFiles\Docker" | |
- name: Run Selenoid | |
shell: pwsh | |
run: .\src\external-resources\selenoid\start-selenoid-docker.ps1 | |
- name: Run WEB tests | |
shell: cmd | |
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@WEB" | |
- name: Run API tests | |
shell: cmd | |
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@API" |