Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Mar 27, 2024
1 parent 0622cb4 commit 41a60e1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 28 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,12 @@ jobs:

- name: Start stack using docker compose
run: docker compose up -d

- name: Setup nodejs (for cypress)
uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
cache: "npm"
cache-dependency-path: "frontend/package-lock.json"

- name: Install npm packages (for cypress)
run: npm ci
working-directory: ./frontend

- name: Test end to end (cypress)
run: FRONTEND_HOST=localhost FRONTEND_PORT=3000 npm run test:e2e-ci
working-directory: ./frontend
- name: Cypress run
uses: cypress-io/github-action@v6
with:
working-directory: ./frontend
command: npm run test:e2e-ci

- name: Send artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { defineConfig } = require('cypress')

const frontendHost = process.env.FRONTEND_HOST || 'localhost'
const frontendPort = process.env.FRONTEND_PORT || '5173'
const frontendPort = process.env.FRONTEND_PORT || '3000'

module.exports = defineConfig({
e2e: {
Expand Down
22 changes: 11 additions & 11 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@vitejs/plugin-vue": "^5.0.3",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/tsconfig": "^0.5.1",
"cypress": "^13.6.4",
"cypress": "^13.7.1",
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
Expand Down

0 comments on commit 41a60e1

Please sign in to comment.