Skip to content

add permission

add permission #12

Workflow file for this run

name: KoTest Allure Report Poc
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Get code
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: run test and make report
run: |
./gradlew clean test allureReport
shell: bash
# - name: Copy reporter-readme.txt to report directory
# run: cp reporter-readme.txt build/reports/allure-report/allureReport
# - name: Upload test report
# uses: actions/upload-artifact@v4
# with:
# name: test-report-by-allure
# path: build/reports/allure-report
- name: Deploy report page
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/reports/allure-report/allureReport