Skip to content

Commit

Permalink
Merge pull request #765 from thornbill/integration-test-ci
Browse files Browse the repository at this point in the history
Add workflow to run integration tests weekly
  • Loading branch information
thornbill authored Aug 6, 2024
2 parents 68c0efd + 554c1aa commit e8eb29a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e8eb29a

Please sign in to comment.