Skip to content

Commit

Permalink
Build and Test Action
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed Oct 20, 2023
1 parent c07fb2a commit f1f1557
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/vitest.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Name of this action
name: Vitest Automatic Testing
name: Build and Test

# Event triggers on pull request event
# For more detail visit https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#on
Expand All @@ -9,9 +9,9 @@ on: pull_request
# For more detail on this section visit https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobs
jobs:
# ID of the job
run-vitest:
run-test:
# Name of the job as it will be displayed in GitHub
name: Vitest
name: Build and Test
# Machine which this action will be run on. For a list of all the machines available/how to run on self hosted machine visit
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: ubuntu-latest
Expand All @@ -32,9 +32,6 @@ jobs:
- name: Install all dependencies
run: npm install

- name: Run Jest Tests
run: npm run test

- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
Expand All @@ -45,4 +42,4 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
# this should match the `pages` option in your adapter-static options
path: 'build/'
path: 'build/'

0 comments on commit f1f1557

Please sign in to comment.