From b9e303c67db0494b8a0da547757cdf38f67eb610 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sat, 26 Jun 2021 00:39:20 +0300 Subject: [PATCH 1/2] ci: configure GitHub Actions --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6e4a3d8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +on: [ push, pull_request ] +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + java: [ '8', '11', '16' ] + + name: Test with Java ${{ matrix.java }} + + steps: + - uses: actions/checkout@v2.3.4 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v2.1.0 + with: + distribution: 'adopt-hotspot' + java-version: ${{ matrix.java }} + + - name: Cache local Maven repository + uses: actions/cache@v2.1.6 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Test with Maven + run: mvn -B test From 4adfd504b50404030d895939cd3adc9fa1082306 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sat, 26 Jun 2021 00:40:49 +0300 Subject: [PATCH 2/2] ci: remove Travis config --- .travis.yml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ac3050c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: java -sudo: false -jdk: - - openjdk8 - - openjdk11 - - openjdk12