Skip to content

creating artifact even if the test fails #34

creating artifact even if the test fails

creating artifact even if the test fails #34

Workflow file for this run

name: Regression Tests
on:
push:
branches: [main, test_workflow]
# We will conduct regression on the main branch only
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install dependencies
run: npm ci
- name: Run Jest tests [Theoretical Tests]
run: npm test
- name: "Upload Artifact"
if: always()
uses: actions/upload-artifact@v3
with:
name: my-artifact
path: |
beforeScroll.png
afterScroll.png
retention-days: 5