Skip to content

Commit

Permalink
workflow: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Sep 22, 2023
1 parent 8277e36 commit e9641c5
Show file tree
Hide file tree
Showing 11 changed files with 415 additions and 687 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ jobs:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
node-version: ${{ matrix.version }}
- name: Install berry
run: corepack enable

- name: install dependices
run: yarn

- name: build project
run: yarn build

- name: prepare e2e
run: yarn prepare:e2e

- name: run e2e test
run: yarn e2e
12 changes: 7 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install berry
run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install Dependices
run: npm install
run: yarn install

- name: Build Project
run: npm run build
run: yarn build

- name: Run Test
run: npm run test
run: yarn test

- name: Report Coverage
uses: codecov/codecov-action@v2
5 changes: 1 addition & 4 deletions e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"name": "vite-plugin-compression2-e2e",
"private": "true",
"scripts": {
"installer": "yarn --cwd vite2 && yarn --cwd vite3 && yarn --cwd vite4"
}
"private": "true"
}
7 changes: 3 additions & 4 deletions e2e/vite2/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "vite-plugin-cdn2-e2e-vite2",
"private": "true",
"dependencies": {
"vite": "^2",
"@vitejs/plugin-vue": "^2.3.4"
"@vitejs/plugin-vue": "^2.3.4",
"vite": "^2"
}
}
}
226 changes: 0 additions & 226 deletions e2e/vite2/yarn.lock

This file was deleted.

7 changes: 3 additions & 4 deletions e2e/vite3/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "vite-plugin-cdn2-e2e-vite3",
"private": "true",
"dependencies": {
"vite": "^3",
"@vitejs/plugin-vue": "^3.2.0"
"@vitejs/plugin-vue": "^3.2.0",
"vite": "^3"
}
}
}
Loading

0 comments on commit e9641c5

Please sign in to comment.