fixing runs #34
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Test Automation | |
on: | |
push: | |
branches: ['develop', 'main'] | |
pull_request: | |
branches: ['develop', 'main'] | |
workflow_dispatch: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm ci | |
- run: npm run format | |
jest-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run jest tests | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run jest | |
postman-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run postman tests | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run postman | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Run cypress tests in CHROME | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run cy:run | |
browser: chrome | |
- name: Run cypress tests in FIREFOX | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run cy:run | |
browser: firefox | |
- name: Run cypress tests in EDGE | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run cy:run | |
browser: edge | |
- name: Run cypress tests in ELECTRON | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run cy:run | |
browser: electron | |
k6-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run k6 tests | |
uses: grafana/[email protected] | |
with: | |
filename: k6/tests/baseline-test.js |