Skip to content

refactor: simplify build-and-test workflow by removing redundant repo… #422

refactor: simplify build-and-test workflow by removing redundant repo…

refactor: simplify build-and-test workflow by removing redundant repo… #422

Workflow file for this run

name: build-and-test
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: '0 2 * * *'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build
run: npm run all:action
- name: Publish Test Report
uses: ./
with:
report-path: './ctrf/*.json'
summary-report: true
github-report: true
failed-report: true
flaky-report: true
insights-report: true
fail-rate-report: true
flaky-rate-report: true
slowest-report: true
previous-results-report: true
use-suite-name: true
upload-artifact: true
write-ctrf-to-file: './full-report.json'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: always()
- name: Upload Ctrf to Artifact
uses: actions/upload-artifact@v4
with:
name: ctrf
path: './full-report.json'
- name: Publish Test Report
uses: ./
with:
report-path: './ctrf/*.json'
pull-request-report: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: always()