Skip to content

Commit

Permalink
Changed cd/ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume-Lachapelle committed Feb 4, 2024
1 parent 353fe41 commit b8da933
Showing 1 changed file with 58 additions and 11 deletions.
69 changes: 58 additions & 11 deletions .github/workflows/cypress_tests.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,64 @@
name: Cypress Tests
# name: Cypress Tests

on: push
# on: push

# jobs:
# cypress-run:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# # Install NPM dependencies, cache them correctly
# # and run all Cypress tests
# - name: Cypress run
# uses: cypress-io/github-action@v6
# with:
# build: npm run build
# start: npm start

name: Node.js CI test 3

on:
push:
pull_request:

jobs:

build:

runs-on: windows-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test-headless

sonarcloud-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start

0 comments on commit b8da933

Please sign in to comment.