Skip to content

Commit

Permalink
chore: update project to vue3 and other latest dependencies
Browse files Browse the repository at this point in the history
Fixes #266, #463
Closes #509, #464, #461, #451, #332, #322, #317, #297, #287, #276, #199
  • Loading branch information
d-koppenhagen committed Dec 22, 2024
1 parent 8ce8f4f commit 648bc3b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,18 @@ on:
branches-ignore:
- main
- gh-pages

jobs:
build-and-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
- name: Build and Run End2End tests with Cypress
uses: cypress-io/github-action@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 30
build: npm run build
start: npm run dev
wait-on: "http://localhost:8080"
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
15 changes: 15 additions & 0 deletions cypress/e2e/smoke.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
beforeEach(() => {
cy.visit("/")
})

it("should display the title", () => {
cy.get(".v-toolbar__content").contains("Trivy")
})

it("should contain a file input", () => {
cy.get(".v-file-upload input").should("have.attr", "type", "file")
})

it("should display an alert that no report was loaded", () => {
cy.get(".v-alert")
})

0 comments on commit 648bc3b

Please sign in to comment.