Skip to content

release v0.7.0

release v0.7.0 #216

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
pull-requests: write
checks: write
contents: write
concurrency:
group: pages-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'main' }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
name: Unit tests
env:
ALLURE_SERVICE_ACCESS_TOKEN: ${{ secrets.ALLURE_SERVICE_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: Compute publish subpath
id: path
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "subdir=pr-${{ github.event.number }}" >> "$GITHUB_OUTPUT"
else
echo "subdir=" >> "$GITHUB_OUTPUT"
fi
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: 24
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Lint and format check
run: yarn lint
- name: Build TypeScript
run: yarn build
- name: Run tests
run: yarn test
continue-on-error: true
- name: Run Allure Action
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: ./
with:
report-directory: "./out/allure-report"
remote-href: "https://allure-framework.github.io/allure-action/${{ steps.path.outputs.subdir }}"
github-token: ${{ secrets.GITHUB_TOKEN }}
sections: "all"
- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out/allure-report
publish_branch: gh-pages
destination_dir: ${{ steps.path.outputs.subdir }}
keep_files: true