Skip to content

Commit b521a7d

Browse files
authored
Merge pull request #340 from JonathanBout/master
2 parents c8ebd2a + 0069c01 commit b521a7d

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
contents: read
1919
packages: write
2020
steps:
21+
- name: Run Tests
22+
uses: jonathanbout/portfolio/.github/workflows/node.js.yml@${{ env.BRANCH_NAME }}
2123
- name: Checkout Code
2224
uses: actions/checkout@v4
2325
- name: Login to GHCR

.github/workflows/node.js.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Build
5+
6+
on:
7+
pull_request:
8+
branches: [ "master", "release" ]
9+
workflow_dispatch:
10+
workflow_call:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: 'npm'
22+
- run: npm ci
23+
- run: npm run build
24+
- run: npm run test --if-present

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@babel/types": "^7.26.0",
3232
"@tsconfig/node18": "^18.2.4",
3333
"@types/node": "^22.9.0",
34-
"@vitejs/plugin-vue": "^5.1.5",
34+
"@vitejs/plugin-vue": "^5.2.0",
3535
"@vue/tsconfig": "^0.6.0",
3636
"autoprefixer": "^10.4.20",
3737
"eslint-config-prettier": "^9.1.0",

0 commit comments

Comments
 (0)