cucumber-junit5-framework/.gitea/workflows/build.yml

61 lines
1.9 KiB
YAML
Raw Permalink Normal View History

name: msbuild
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-gitea
2024-07-24 17:25:45 +00:00
env:
CHROMEDRIVER_VERSION: 113.0.5672.63
CHROME_VERSION: 113.0.5672.0
EDGEDRIVER_VERSION: 126.0.2592.102
steps:
2024-07-24 17:59:26 +00:00
- name: Clone the repo
uses: actions/checkout@v4
- name: Install java 17
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: |
2024-07-24 17:16:56 +00:00
export PATH=$PATH:${{gitea.workspace}}/gradle-8.9/bin
java -version
gradle --version
echo $JAVA_HOME
2024-07-24 17:59:26 +00:00
- name: Prep the host environment for MS Edge
2024-07-24 17:21:03 +00:00
run: |
apt update -y
apt upgrade -y
- name: Install Edge and EdgeDriver for Linux
2024-07-24 17:21:03 +00:00
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
2024-07-24 17:21:03 +00:00
- name: Gradle Build
run: |
export PATH=$PATH:${{gitea.workspace}}/drivers
2024-07-24 17:16:56 +00:00
export PATH=$PATH:${{gitea.workspace}}/gradle-8.9/bin
2024-07-24 17:53:18 +00:00
gradle build --scan