Skip to content

Commit

Permalink
Upgrade support for Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
alombardorccl committed Aug 14, 2023
1 parent 8f6fa43 commit dc11073
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/run-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Run Web Smoke Tests

on:
workflow_dispatch:
inputs:
environment:
type: choice
description: Select an Environment?
options:
- test
- stage
- prod
color:
type: choice
description: Select a Color?
options:
- yellow
- green
- blue

jobs:

run:
name: run
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Start Selenoid Server
uses: Xotabu4/selenoid-github-action@v2

- name: Run Tests
run: mvn -B clean install -Psmoke-web -Dcolor=${{github.event.inputs.color}} -Dtest.env=${{github.event.inputs.environment}} -Drunners=5 -Dskip-profile=true

- name: Get Allure history
uses: actions/checkout@v2
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: target/allure-results
gh_pages: gh-pages
allure_report: allure-report
allure_history: allure-history

- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history

0 comments on commit dc11073

Please sign in to comment.