Skip to content

fix(ci): teste ci allure report history #30

fix(ci): teste ci allure report history

fix(ci): teste ci allure report history #30

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/gradle.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gradle.yml

Invalid workflow file

(Line: 47, Col: 9): Unexpected value 'with'
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --no-daemon
- name: Run tests
run: ./gradlew test
continue-on-error: true
- name: Setup Allure History
run: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Generate Allure Report with History
uses: simple-elf/allure-report-action@v1.11
if: always()
with:
allure_results: build/allure-results
allure_history: allure-history
keep_reports: 20
- name: Deploy Allure Report to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history