Skip to content

Commit

Permalink
ci: add gitlab cloud config
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpak1300 committed Jun 30, 2024
1 parent c0edd54 commit 3c12e4c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: Cypress
name: Cypress Test

on: [push]

jobs:
cypress-tests:
runs-on: ubuntu-latest
env:
CYPRESS_RECORD_KEY: ${{ secret.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }}
services:
mailpit:
image: axllent/mailpit
ports:
- 8025:8025
- 1025:1025
strategy:
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
matrix:
containers: [ 1 ]
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
npm install
- name: Lint App
run: |
npm run check
- name: Build App
run: |
npm run build
- name: Run Cypress Tests
run: |
npm run cy:run
- uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
wait-on: 'http://localhost:8025'
record: false
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github/
cypress/
.biome.json
cypress.config.ts
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "cypress";

// noinspection JSUnusedGlobalSymbols
export default defineConfig({
projectId: "ko5dq3",
video: false,
e2e: {
setupNodeEvents(_on, _config) {},
Expand Down

0 comments on commit 3c12e4c

Please sign in to comment.