WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 648bc3b

Browse files
committed
chore: update project to vue3 and other latest dependencies
Fixes #266, #463 Closes #509, #464, #461, #451, #332, #322, #317, #297, #287, #276, #199
1 parent 8ce8f4f commit 648bc3b

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,18 @@ on:
44
branches-ignore:
55
- main
66
- gh-pages
7-
87
jobs:
98
build-and-test:
10-
timeout-minutes: 60
119
runs-on: ubuntu-latest
1210
steps:
1311
- name: Checkout 🛎️
1412
uses: actions/[email protected]
1513
- uses: actions/setup-node@v4
1614
with:
1715
node-version: 22
18-
- name: Install dependencies
19-
run: npm ci
20-
- name: Build
21-
run: npm run build
22-
- name: Install Playwright Browsers
23-
run: npx playwright install --with-deps
24-
- name: Run Playwright tests
25-
run: npx playwright test
26-
- uses: actions/upload-artifact@v4
27-
if: ${{ !cancelled() }}
16+
- name: Build and Run End2End tests with Cypress
17+
uses: cypress-io/github-action@v4
2818
with:
29-
name: playwright-report
30-
path: playwright-report/
31-
retention-days: 30
19+
build: npm run build
20+
start: npm run dev
21+
wait-on: "http://localhost:8080"

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,3 @@ pnpm-debug.log*
1919
*.njsproj
2020
*.sln
2121
*.sw?
22-
23-
# Playwright
24-
/test-results/
25-
/playwright-report/
26-
/blob-report/
27-
/playwright/.cache/

cypress/e2e/smoke.cy.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
beforeEach(() => {
2+
cy.visit("/")
3+
})
4+
5+
it("should display the title", () => {
6+
cy.get(".v-toolbar__content").contains("Trivy")
7+
})
8+
9+
it("should contain a file input", () => {
10+
cy.get(".v-file-upload input").should("have.attr", "type", "file")
11+
})
12+
13+
it("should display an alert that no report was loaded", () => {
14+
cy.get(".v-alert")
15+
})

0 commit comments

Comments
 (0)