Merge pull request #765 from thornbill/integration-test-ci

Add workflow to run integration tests weekly
This commit is contained in:
Bill Thornton 2024-08-06 16:04:31 -04:00 committed by GitHub
commit e8eb29a37a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 1 deletions

29
.github/workflows/test-integration.yaml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Integration Test
on:
schedule:
- cron: '15 8 * * 1'
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 20
check-latest: true
cache: npm
- name: Install Node.js dependencies
run: npm ci --no-audit
- name: Run Vitest
run: npm run test:integration

View File

@ -22,7 +22,8 @@
"fix-schema": "node scripts/modify-schema.mjs openapi.json",
"lint": "eslint \".\"",
"prepublishOnly": "npm run clean:build:sdk",
"test": "vitest --exclude **/integration.test.ts"
"test": "vitest --exclude **/integration.test.ts",
"test:integration": "vitest integration"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "2.13.4",