Skip to content

update actions and node #18

update actions and node

update actions and node #18

Workflow file for this run

name: Main
on:
push:
branches: ['main']
env:
TESTRADAR_API_KEY: ${{ secrets.TESTRADAR_API_KEY }}
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- run: npm test
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Cypress Run
uses: cypress-io/github-action@v6
with:
command: npm run e2e
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- run: npx prettier . --check --ignore-unknown