Skip to content

Commit

Permalink
Vue3 - update workflows ci (#377)
Browse files Browse the repository at this point in the history
* update workflows ci

* fix spelling mistake

* add free solid svg icons to ci

* update ci to install free solid icons

* remove extra vue imstall

* one more try ci
  • Loading branch information
jasonlundien committed Jan 6, 2023
1 parent aed76ee commit 4241f0d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,48 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
free-solid-svg-icons: [
5.x,
6.x
]
fontawesome-svg-core: [
1.2.x,
6.x
]
node-version: [
14.x,
16.x,
18.x
]
vue: [
3.0.x,
3.1.x,
3.2.x
]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install, build, and test
- name: v5 install, build, and test
if: ${{ matrix.free-solid-svg-icons }} == '5.x'
run: |
npm install -g npm
npm install
npm install --no-save @fortawesome/fontawesome-svg-core@1.2.x @fortawesome/free-solid-svg-icons@5.x vue@${{ matrix.vue }}
npm run build
npm list vue
npm run test
- name: v6 install, build, and test
if: ${{ matrix.free-solid-svg-icons }} == '6.x'
run: |
npm install -g npm
npm install
npm install --no-save @fortawesome/fontawesome-svg-core@6.x @fortawesome/free-solid-svg-icons@6.x vue@${{ matrix.vue }}
npm run build
npm list vue
npm run test
env:
CI: true
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"scripts": {
"build": "rollup -c rollup.config.js",
"dist": "cross-env NODE_ENV=production npm run build",
"test": "npm run test.5 && npm run test.6",
"test.5": "npm --no-save install @fortawesome/fontawesome-svg-core@1.2.x @fortawesome/free-solid-svg-icons@5.x && jest --silent",
"test.6": "npm --no-save install @fortawesome/fontawesome-svg-core@6.x @fortawesome/free-solid-svg-icons@6.x && jest --silent",
"test": "jest --silent",
"prepack": "npm run dist"
},
"lint-staged": {
Expand Down

0 comments on commit 4241f0d

Please sign in to comment.