Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute authored Aug 18, 2023
1 parent 0e33308 commit a4be266
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/mal_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ on: [workflow_dispatch]

permissions: read-all

concurrency: mal-test
concurrency:
group: mal-test
cancel-in-progress: true

jobs:
mal_ci:
Expand All @@ -17,37 +19,37 @@ jobs:
fail-fast: false
max-parallel: 1
steps:
- name: 📤 Checkout Repository
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Java
- name: Install Java
uses: actions/setup-java@v3
with:
architecture: x64
distribution: temurin
java-version: ${{ matrix.java }}

- name: 🔐 Load Client ID
- name: Load Client ID
if: matrix.auth == 'Client'
run: |
echo ${{ secrets.MAL_CLIENT }} > src/test/java/resources/client.txt
- name: 🔐 Load OAuth Token
- name: Load OAuth Token
if: matrix.auth == 'Token'
run: |
echo ${{ secrets.MAL_TOKEN }} > src/test/java/resources/token.txt
- name: ✔️ Test with Maven
- name: Test with Maven
continue-on-error: true
run: mvn test -fae --no-transfer-progress

- name: 📤 Checkout JUnit Report
- 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
- name: Generate Report
uses: ./.github/junit-report

0 comments on commit a4be266

Please sign in to comment.