Skip to content

build: give more time for the pod to be ready #41

build: give more time for the pod to be ready

build: give more time for the pod to be ready #41

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 21
distribution: 'zulu'
- name: Setup Docker Compose
run: |
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle', 'gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Raise infra
run: make infrastructure/up
- name: Code linting
run: ./gradlew spotlessCheck
- name: Static analysis
run: |
./gradlew pmdMain
./gradlew pmdTest
- name: Run tests
run: ./gradlew test
- name: Build
run: ./gradlew clean assemble