Skip to content

background

background #206

Workflow file for this run

name: Time of Day
on:
push:
branches: ['develop', 'main']
pull_request:
branches: ['develop', 'main']
workflow_dispatch:
jobs:
setup-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
# - name: Install Dependencies
# run: npm ci
# - name: Run Format
# run: npm run format-check
# unit-and-component-test:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node]
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run jest tests
# run: npm run test -- --coverage
# - name: Upload Coverage to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage/*.json
# name: codecov-umbrella
# fail_ci_if_error: true
# api-test:
# runs-on: ubuntu-latest
# timeout-minutes: 5
# needs: [setup-node]
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run api tests
# run: npm run api-test
# cypress-run-chrome:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Chrome
# run: npm run cy:pipeline-run-chrome
# cypress-run-safari-webkit:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '2m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Install webkit Dependencies
# run: npx playwright install-deps webkit
# - name: Run Cypress Tests against Safari-Webkit
# run: npm run cy:pipeline-run-webkit
# cypress-run-firefox:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '5m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Firefox
# run: npm run cy:pipeline-run-firefox
# cypress-run-edge:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '7m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Edge
# run: npm run cy:pipeline-run-edge
# cypress-run-electron:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '9m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Electron
# run: npm run cy:pipeline-run-electron
k6-run:
runs-on: ubuntu-latest
needs: [setup-node]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Start Backend Server
run: |
npm run start-server &
sleep 15s
curl http://localhost:8000 -I
# - name: Start App
# run: |
# npm run start-app &
# sleep 15s &&
# curl http://localhost:3000 -I &&
- name: Run k6 tests
uses: grafana/[email protected]
with:
filename: k6/tests/baseline-test.js