summaryrefslogtreecommitdiff
path: root/.github/workflows/simulator.yml
blob: 887d4af674edfa4122ef0b418897cd4574a1dac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Simulator

on:
    push:
        paths:
        - 'simulator/*'

defaults:
    run:
        working-directory: simulator

jobs:
    build:
        runs-on: ${{ matrix.os }}
        strategy:
            matrix:
                os: [ubuntu-latest]
                java: [14]
        steps:
        - name: Checkout repository
          uses: actions/checkout@v2
        - name: Set up JDK
          uses: actions/setup-java@v1
          with:
            java-version: ${{ matrix.java }}
        - name: Grant execute permission for gradlew
          run: chmod +x gradlew
        - uses: actions/cache@v1
          with:
            path: ~/.gradle/caches
            key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
            restore-keys: |
                ${{ runner.os }}-gradle-
        - name: Build with Gradle
          run: ./gradlew assemble
        - name: Check with Gradle
          run: ./gradlew check --info