Skip to content

Commit

Permalink
chore: update configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Jun 17, 2024
1 parent 88d50f8 commit 287ea87
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ on:
push:
branches:
- main # Set a branch name to trigger deployment


paths:
- '.github/workflows/gh-pages.yml'
- 'website/**'
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
working-directory: website
strategy:
matrix:
node-version: [20.x]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
5 changes: 5 additions & 0 deletions website/tests/website.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('should test the website file', () => {
it('should test the website file', () => {
expect(1).toBe(1);
});
});
14 changes: 14 additions & 0 deletions website/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { fileURLToPath } from 'url';
import { configDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
globals: true,
testTimeout: 100000000,
exclude: [...configDefaults.exclude],
alias: {
'~/': fileURLToPath(new URL('./src/', import.meta.url)),
},
include: ['**/?(*.){test,spec}.?(c|m)[jt]s?(x)'],
},
});

0 comments on commit 287ea87

Please sign in to comment.