Skip to content

Update pipeline to fix branch pattern. (#16) #103

Update pipeline to fix branch pattern. (#16)

Update pipeline to fix branch pattern. (#16) #103

Workflow file for this run

name: lf-sample-repository-api-java-CI
on:
push:
branches: [ 'v\d+' ]
pull_request:
branches: [ 'v\d+' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: Build with Maven
run: mvn clean compile assembly:single
- name: Run with Java
env:
ACCESS_KEY: ${{ secrets.DEV_CA_PUBLIC_USE_INTEGRATION_TEST_ACCESS_KEY }}
SERVICE_PRINCIPAL_KEY: ${{ secrets.DEV_CA_PUBLIC_USE_TESTOAUTHSERVICEPRINCIPAL_SERVICE_PRINCIPAL_KEY }}
REPOSITORY_ID: ${{ secrets.DEV_CA_PUBLIC_USE_REPOSITORY_ID_1 }}
AUTHORIZATION_TYPE: ${{ secrets.AUTHORIZATION_TYPE }}
run: java -jar target/lf-sample-repository-api-1.0.0-jar-with-dependencies.jar