Showing logs from the run as a workflow step #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |