Skip to content

MTA CI

MTA CI #221

Workflow file for this run

name: MTA CI
on: [workflow_dispatch]
permissions: read-all
concurrency:
group: mta-test
cancel-in-progress: true
jobs:
mta_ci:
name: MTA CI [${{ matrix.group }}] (Java ${{ matrix.java }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
java: [8, 11, 17, 21, 23]
group: [MTA, Bus, Subway, LIRR, MNR]
fail-fast: false
max-parallel: 1
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
architecture: x64
distribution: temurin
java-version: ${{ matrix.java }}
- name: Install resources
shell: bash
run: ./install.sh
- name: Load Client ID
run: echo ${{ secrets.BUS_TOKEN }} > src/test/java/resources/bus.txt
- name: Load Test Group
run: echo ${{ matrix.group }} > src/test/java/resources/TEST_GROUP
- name: Test with Maven
continue-on-error: true
run: mvn test -fae --no-transfer-progress
- name: Check Token
run: |-
if [ "${{ secrets.KDEVBOT_PRIVATE_KEY }}" != '' ]
then
echo "authenticated=true" >> $GITHUB_ENV;
fi
- name: Authenticate
id: auth
if: ${{ env.authenticated }}
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.KDEVBOT_APP_ID }}
private-key: ${{ secrets.KDEVBOT_PRIVATE_KEY }}
owner: KatsuteDev
- name: Checkout JUnit Report
if: ${{ env.authenticated }}
uses: actions/checkout@v4
with:
repository: KatsuteDev/junit-report
ref: bc106f1790b25d6fe951a9baab3816fec37ac33d
path: ./.junit-report
token: ${{ steps.auth.outputs.token }}
- name: Generate Report
if: ${{ env.authenticated }}
uses: ./.junit-report
with:
job: MTA CI [${{ matrix.group }}] (Java ${{ matrix.java }})
token: ${{ steps.auth.outputs.token }}