Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix ci errors #3

Merged
merged 1 commit into from
Jan 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,30 @@ jobs:
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with: { node-version: "${{ matrix.node }}" }
- name: Install npm 6.x
run: npm install --global npm@6.x
- name: Install Packages for Node v6
run: |
sudo npm i npm@6.x
./node_modules/.bin/npm -v
./node_modules/.bin/npm uninstall vuepress
./node_modules/.bin/npm install
if: ${{ matrix.node == '6.x' || matrix.node == '6.5.0' }}
- name: Uninstall Packages for Node v8
run: |
npm uninstall vuepress
if: ${{ matrix.node == '8.x' }}
- name: Install Packages
run: npm install
if: ${{ matrix.node != '6.x' && matrix.node != '6.5.0' }}
- name: Install ESLint ${{ matrix.eslint }} for Node v6
run: ./node_modules/.bin/npm install --no-save eslint@${{ matrix.eslint }}
if: ${{ matrix.node == '6.x' || matrix.node == '6.5.0' }}
- name: Install ESLint ${{ matrix.eslint }}
run: npm install --no-save eslint@${{ matrix.eslint }}
if: ${{ matrix.node != '6.x' && matrix.node != '6.5.0' }}
- name: Test
run: npm run -s test:ci
- name: Send Coverage
run: npm run -s codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.node != '6.x' && matrix.node != '6.5.0' }}