Skip to content

Commit

Permalink
[CI] Run npm test
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jan 13, 2024
1 parent 91e0815 commit 5129580
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: smoke

on:
push:
branches: [ main ]
branches: [main]
pull_request:
schedule: # midnight every day
- cron: '0 0 * * *'
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test

on:
push:
branches: [main]
pull_request:
schedule:
- cron: '11 0 * * *' # 11 past midnight every day
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json
- run: npm install --omit=optional
shell: bash
- # if: matrix.os != 'windows-latest'
run: npm test
shell: bash
# - if: matrix.os == 'windows-latest'
# run: npm test-windows
# shell: bash
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"pretest": "npm run _prebuild",
"serve": "npm run cd:docs serve",
"test": "npm run cd:docs test && npm run check",
"test-windows": "npm run cd:docs",
"update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest",
"update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest"
},
Expand Down

0 comments on commit 5129580

Please sign in to comment.