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

Replace Travis with GH Actions #525

Merged
merged 1 commit into from
Sep 28, 2021
Merged
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
15 changes: 15 additions & 0 deletions .github/workflows/testing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -eu -o pipefail

export GRADLE_OPTS="-Xms128m"

./gradlew clean assemble -x signArchives test --tests com.google.protobuf.gradle.ProtobufJavaPluginTest --stacktrace
./gradlew test --tests com.google.protobuf.gradle.ProtobufKotlinDslCopySpecTest --stacktrace
./gradlew test --tests com.google.protobuf.gradle.ProtobufKotlinDslPluginTest --stacktrace
./gradlew test --tests com.google.protobuf.gradle.ProtobufAndroidPluginTest --stacktrace
./gradlew -stop
./gradlew test --tests com.google.protobuf.gradle.ProtobufAndroidPluginKotlinTest --stacktrace
./gradlew test --tests com.google.protobuf.gradle.AndroidProjectDetectionTest --stacktrace
./gradlew codenarcMain || (cat ./build/reports/codenarc/main.txt && false)
./gradlew codenarcTest || (cat ./build/reports/codenarc/test.txt && false)
25 changes: 25 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: GitHub Actions Linux Testing

on:
push:
branches:
- master
pull_request:

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
cache: 'gradle'

- name: Build
run: .github/workflows/testing.sh
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.