Skip to content

Commit

Permalink
feat: add ci flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke committed Sep 29, 2023
1 parent 99cc068 commit 82b4935
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Cypress

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Start server
run: npm run dev &
- name: Run tests
run: npm run cy:run
4 changes: 1 addition & 3 deletions publish-frontend/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
e2e: {
setupNodeEvents(_on, _config) {
// implement node event listeners here
}
baseUrl: 'http://localhost:3000'
}
});
3 changes: 2 additions & 1 deletion publish-frontend/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
describe('template spec', () => {
it('the site runs!', () => {
it('is possible to login', () => {
cy.visit('/');
cy.contains('Sign in').click();
});
});
Binary file not shown.

0 comments on commit 82b4935

Please sign in to comment.