cucumber-junit5-framework/.gitea/workflows/build.yml
Greg Gauthier 8fa358eed0
Some checks failed
msbuild / build (push) Failing after 1m53s
add build scan
2024-07-24 18:53:18 +01:00

66 lines
2.1 KiB
YAML

name: msbuild
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-gitea
env:
CHROMEDRIVER_VERSION: 113.0.5672.63
CHROME_VERSION: 113.0.5672.0
EDGEDRIVER_VERSION: 126.0.2592.102
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- name: Install Gradle
run: |
wget https://services.gradle.org/distributions/gradle-8.9-bin.zip
unzip gradle-8.9-bin.zip
export PATH=$PATH:${{gitea.workspace}}/gradle-8.9/bin
- name: Validate Java installation
run: |
export PATH=$PATH:${{gitea.workspace}}/gradle-8.9/bin
java -version
gradle --version
echo $JAVA_HOME
- name: Prep the Debian repositories
run: |
apt update -y
apt upgrade -y
- name: Install Edge and EdgeDriver for Linux
if: runner.os == 'Linux'
run: |
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_linux64.zip
unzip edgedriver_linux64.zip
mv msedgedriver drivers
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
sudo rm microsoft.gpg
apt update
apt install -y microsoft-edge-stable
- name: EdgeDriver for Windows
if: runner.os == 'Windows'
run: |
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_win64.zip
unzip edgedriver_win64.zip
mv msedgedriver.exe drivers
List-Item -Recurse driversn
- name: Gradle Build
run: |
export PATH=$PATH:${{gitea.workspace}}/drivers
export PATH=$PATH:${{gitea.workspace}}/gradle-8.9/bin
gradle build --scan