Piped-Backend/.github/workflows/ci.yml

34 lines
736 B
YAML
Raw Normal View History

2021-01-05 11:01:07 +05:30
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
2021-10-31 23:35:04 +05:30
strategy:
matrix:
java: [11, 17]
2021-01-05 11:01:07 +05:30
steps:
- uses: actions/checkout@v2.3.5
2021-01-05 11:01:07 +05:30
2021-10-31 23:35:04 +05:30
- name: set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
2021-01-05 11:01:07 +05:30
with:
2021-10-31 23:35:04 +05:30
java-version: ${{ matrix.java }}
distribution: temurin
check-latest: true
2021-01-05 11:01:07 +05:30
- name: Cache Gradle dependencies
uses: actions/cache@v2.1.6
2021-01-05 11:01:07 +05:30
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
2021-01-05 11:04:52 +05:30
- name: Run Build
run: chmod +x ./gradlew && ./gradlew build