Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github action workflow #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Main

on:
pull_request:
types:
- opened
- synchronized
- reopened
push:
branches:
- main

jobs:
linux:
name: Linux
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
architecture: x64
cache: maven

- name: Download all dependencies
run: |
# Download all dependencies that integration tests might need later
./mvnw -B -V -Dstyle.color=always dependency:go-offline -f src/it/dependencies/pom.xml -P protoc-3.4.0
./mvnw -B -V -Dstyle.color=always dependency:go-offline -f src/it/dependencies/pom.xml -P protoc-3.11.1
./mvnw -B -V -Dstyle.color=always dependency:go-offline -P run-its

# These protoc executables were downloaded in the previous phase and are being referenced in toolchains.xml
chmod +x $HOME/.m2/repository/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-linux-x86_64.exe
chmod +x $HOME/.m2/repository/com/google/protobuf/protoc/3.11.1/protoc-3.11.1-linux-x86_64.exe

- name: Build and test
run: |
./mvnw -B -V -t .github/workflows/toolschains-linux.xml -Dstyle.color=always clean verify -P run-its -Dinvoker.streamLogs=true

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<id>openjdk8</id>
</provides>
<configuration>
<jdkHome>/usr/lib/jvm/java-8-openjdk-amd64</jdkHome>
<jdkHome>${env.JAVA_HOME}</jdkHome>
</configuration>
</toolchain>
<toolchain>
Expand All @@ -34,9 +34,7 @@
<version>3.4.0</version>
</provides>
<configuration>
<protocExecutable>
/home/travis/.m2/repository/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-linux-x86_64.exe
</protocExecutable>
<protocExecutable>${env.HOME}/.m2/repository/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-linux-x86_64.exe</protocExecutable>
</configuration>
</toolchain>
<toolchain>
Expand All @@ -45,9 +43,7 @@
<version>3.11.1</version>
</provides>
<configuration>
<protocExecutable>
/home/travis/.m2/repository/com/google/protobuf/protoc/3.11.1/protoc-3.11.1-linux-x86_64.exe
</protocExecutable>
<protocExecutable>${env.HOME}/.m2/repository/com/google/protobuf/protoc/3.11.1/protoc-3.11.1-linux-x86_64.exe</protocExecutable>
</configuration>
</toolchain>
</toolchains>
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.