MTA CI #187
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
group: [MTA, Bus, Subway, LIRR, MNR] | |
fail-fast: false | |
max-parallel: 1 | |
steps: | |
- name: 📤 Checkout Repository | |
uses: actions/checkout@v3 | |
- name: ☕ Install Java | |
uses: actions/setup-java@v3 | |
with: | |
architecture: x64 | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
- name: 📁 Create Folder | |
run: mkdir "src/test/java/resources" | |
- name: 🔐 Load Client ID | |
run: | | |
echo ${{ secrets.BUS_TOKEN }} > src/test/java/resources/bus.txt | |
- name: 🔐 Load OAuth Token | |
run: | | |
echo ${{ secrets.SUBWAY_TOKEN }} > src/test/java/resources/subway.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: 📤 Checkout JUnit Report | |
uses: actions/checkout@v3 | |
with: | |
repository: Katsute/JUnit-Report | |
ref: f8c3faa29af146ae5945a2bfa2a8fc6b34c1c216 | |
path: ./.github/junit-report | |
token: ${{ secrets.BOT }} | |
- name: ✔️ Generate Report | |
uses: ./.github/junit-report |