Skip to content

Showing logs from the run as a workflow step #10

Showing logs from the run as a workflow step

Showing logs from the run as a workflow step #10

name: Complexity level 1 -> Run Tests
on: push
jobs:
run-specs:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ">=16.0.0"
- name: Run Tests on already hosted app
uses: cypress-io/github-action@v6
with:
install: true
browser: chrome
config-file: /${{ github.workspace }}/cypress/configs/cypress.dev.config.js
- name: Logs from the run
if: always()
run: |
export BRANCH_NAME=${GITHUB_REF#refs/heads/}
export RUN_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
echo "Workflow trigger: "
echo ${{ github.event_name }}