Skip to content

Feature/GitHub actions #7

Feature/GitHub actions

Feature/GitHub actions #7

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Download data file used for config testing
- uses: keithweaver/aws-s3-github-action@v1.0.0
with:
command: cp
source: s3://ehri-data/solr_test_data/searchdata.json
destination: ./solr-config/src/test/resources/searchdata.json
aws_access_key_id: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws_secret_access_key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
aws_region: us-west-1
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Build with Maven
run: mvn test