Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusgrov committed Apr 5, 2024
1 parent d32e7f7 commit 8b899c6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,56 @@
name: CORE

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
narayanaRepo:
description: 'Repo to clone for Narayana'
required: true
default: 'marcosgopen/narayana'
type: 'string'
narayanaBranch:
description: 'Branch to use from narayana'
required: true
default: 'main'
type: 'string'

jobs:
core-test:
name: CORE test with JDK ${{ matrix.java-version }}
timeout-minutes: 120
strategy:
matrix:
java-version: [ 11, 17, 21 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: ${{ inputs.narayanaRepo }}
ref: ${{ inputs.narayanaBranch }}

- uses: actions/setup-java@v1
name: Set up JDK ${{ matrix.java-version }}
with:
java-version: ${{ matrix.java-version }}

- name: CORE test
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
WORKSPACE=$PWD PROFILE=CORE ./scripts/hudson/narayana.sh
env:
LRA_TCK_TIMEOUT_FACTOR: 1

- uses: actions/upload-artifact@v3
if: always()
with:
name: core-logs-jdk${{ matrix.java-version }}
path: |
jboss-as/dist/target/wildfly-*/standalone/log/
**/ObjectStore*/**
**/tx-object-store/**
**/*tx-object-store.zip
**/target/*surefire-reports*/**
**/target/*failsafe-reports*/**
if-no-files-found: error

0 comments on commit 8b899c6

Please sign in to comment.