Skip to content

Commit 73e2db6

Browse files
committed
chore: update ci
1 parent a31ce3d commit 73e2db6

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717

1818
- name: Install pnpm
19-
uses: pnpm/action-setup@v2.2.1
19+
uses: pnpm/action-setup@v2
2020

2121
- name: Set node
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v3
2323
with:
24-
node-version: 16.x
24+
node-version: lts/*
2525
cache: pnpm
2626

2727
- name: Install
@@ -33,15 +33,15 @@ jobs:
3333
typecheck:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
3737

3838
- name: Install pnpm
39-
uses: pnpm/action-setup@v2.2.1
39+
uses: pnpm/action-setup@v2
4040

4141
- name: Set node
42-
uses: actions/setup-node@v2
42+
uses: actions/setup-node@v3
4343
with:
44-
node-version: 16.x
44+
node-version: lts/*
4545
cache: pnpm
4646

4747
- name: Install
@@ -55,17 +55,17 @@ jobs:
5555

5656
strategy:
5757
matrix:
58-
node-version: [14.x, 16.x]
58+
node-version: [18.x, 20.x]
5959
os: [ubuntu-latest]
6060
fail-fast: false
6161

6262
steps:
63-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v3
6464
- name: Install pnpm
65-
uses: pnpm/action-setup@v2.2.1
65+
uses: pnpm/action-setup@v2
6666

6767
- name: Use Node.js ${{ matrix.node-version }}
68-
uses: actions/setup-node@v2
68+
uses: actions/setup-node@v3
6969
with:
7070
node-version: ${{ matrix.node-version }}
7171
registry-url: https://registry.npmjs.org/
@@ -79,18 +79,18 @@ jobs:
7979
test-e2e:
8080
runs-on: ubuntu-latest
8181
steps:
82-
- uses: actions/checkout@v2
83-
- uses: actions/cache@v2
82+
- uses: actions/checkout@v3
83+
- uses: actions/cache@v3
8484
with:
8585
path: |
8686
~/.cache
8787
key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
8888

8989
- name: Install pnpm
90-
uses: pnpm/action-setup@v2.2.1
90+
uses: pnpm/action-setup@v2
9191

9292
- name: Use Node.js ${{ matrix.node-version }}
93-
uses: actions/setup-node@v2
93+
uses: actions/setup-node@v3
9494
with:
9595
node-version: ${{ matrix.node-version }}
9696
registry-url: https://registry.npmjs.org/

cypress.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"baseUrl": "http://localhost:3000",
2+
"baseUrl": "http://localhost:5173",
33
"chromeWebSecurity": false
44
}

cypress/integration/basic.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ context('Basic', () => {
1111
})
1212

1313
cy.url()
14-
.should('eq', 'http://localhost:3000/')
14+
.should('eq', 'http://localhost:5173/')
1515

1616
cy.get('.image-0 .my-component').should('exist')
1717
cy.get('.image-1 .my-component').should('exist')
@@ -23,7 +23,7 @@ context('Basic', () => {
2323
cy.get('.image-0 .my-component').should('not.exist')
2424

2525
cy.url()
26-
.should('eq', 'http://localhost:3000/0')
26+
.should('eq', 'http://localhost:5173/0')
2727

2828
// flying
2929
cy.get('.circle-0 .my-component').should('not.exist')
@@ -39,7 +39,7 @@ context('Basic', () => {
3939
cy.get('.circle-0 .my-component').should('not.exist')
4040

4141
cy.url()
42-
.should('eq', 'http://localhost:3000/')
42+
.should('eq', 'http://localhost:5173/')
4343
// flying
4444
cy.get('.image-0 .my-component').should('not.exist')
4545

@@ -69,7 +69,7 @@ context('Basic', () => {
6969
})
7070

7171
cy.url()
72-
.should('eq', 'http://localhost:3000/0')
72+
.should('eq', 'http://localhost:5173/0')
7373

7474
cy.get('@consoleLog').should((_v) => {
7575
const v = _v as any as Sinon.SinonStub
@@ -86,7 +86,7 @@ context('Basic', () => {
8686
cy.get('.circle-0 .my-component').should('not.exist')
8787

8888
cy.url()
89-
.should('eq', 'http://localhost:3000/')
89+
.should('eq', 'http://localhost:5173/')
9090
// flying
9191
cy.get('.image-0 .my-component').should('not.exist')
9292

cypress/integration/warning.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ context('warnings', () => {
1111

1212
it('no-size', () => {
1313
cy.url()
14-
.should('eq', 'http://localhost:3000/')
14+
.should('eq', 'http://localhost:5173/')
1515

1616
cy.get('.image-0 .my-component').should('exist')
1717

@@ -21,15 +21,15 @@ context('warnings', () => {
2121
cy.get('.image-0 .my-component').should('not.exist')
2222

2323
cy.url()
24-
.should('eq', 'http://localhost:3000/warning-no-size')
24+
.should('eq', 'http://localhost:5173/warning-no-size')
2525

2626
cy.get('@consoleWarn').should('be.calledWith', '[Vue Starport] The proxy of component "MyComponent" (port "0") has no height on initial render, have you set the size for it?')
2727
cy.get('@consoleError').should('not.be.called')
2828
})
2929

3030
it('port-conflict', () => {
3131
cy.url()
32-
.should('eq', 'http://localhost:3000/')
32+
.should('eq', 'http://localhost:5173/')
3333

3434
cy.get('.image-0 .my-component').should('exist')
3535

@@ -39,7 +39,7 @@ context('warnings', () => {
3939
cy.get('.image-0 .my-component').should('not.exist')
4040

4141
cy.url()
42-
.should('eq', 'http://localhost:3000/warning-port-conflict')
42+
.should('eq', 'http://localhost:5173/warning-port-conflict')
4343

4444
cy.get('@consoleWarn').should('not.be.called')
4545
cy.get('@consoleError').should('be.calledWith', '[Vue Starport] Multiple proxies of "MyComponent" with port "0" detected. The later one will be ignored.')

0 commit comments

Comments
 (0)