Skip to content

Commit

Permalink
Update GA + switch to official docker/setup-buildx-action (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett authored Feb 21, 2025
1 parent 71ed956 commit 2c86d4c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,30 @@ name: Run Odoo addon tests
on: [push, pull_request]

jobs:
test-app:

build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'

- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
uses: docker/setup-buildx-action@v3

- name: Setup Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: ./gradlew clean test
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 5.2

- name: Build with Gradle
run: ./gradlew clean test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ build/

# Target dir
target/

# JEnv
.jenv
.java-version

0 comments on commit 2c86d4c

Please sign in to comment.