Skip to content

Merge pull request #7 from arthur3486/feature/crawling-events-expansion #9

Merge pull request #7 from arthur3486/feature/crawling-events-expansion

Merge pull request #7 from arthur3486/feature/crawling-events-expansion #9

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Unit Tests
runs-on: [ubuntu-latest]
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
continue-on-error: true
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Generate a Cache Key
run: ./checksum.sh checksum.txt
- name: Copy CI Gradle Properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Cache Gradle Folders
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ runner.os }}-${{ hashFiles('checksum.txt') }}
restore-keys: |
cache-gradle-${{ runner.os }}-
cache-gradle-
- name: Test Library
run: ./gradlew test
assemble:
name: Library Assembly
runs-on: [ubuntu-latest]
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
continue-on-error: true
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Generate a Cache Key
run: ./checksum.sh checksum.txt
- name: Copy CI Gradle Properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Cache Gradle Folders
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ runner.os }}-${{ hashFiles('checksum.txt') }}
restore-keys: |
cache-gradle-${{ runner.os }}-
cache-gradle-
- name: Build the Library
run: ./gradlew assemble