Skip to content

Commit

Permalink
Merge pull request #5 from nicolas-chaulet/feat/unittest-action
Browse files Browse the repository at this point in the history
Adding a unittest action
  • Loading branch information
nicolas-chaulet authored Jan 29, 2024
2 parents 859961e + 664b4fe commit d206b42
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: unittest

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Cache Modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- run: npm install
- run: npm run test

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ test/e2e/generated
samples/generated
samples/swagger-codegen-cli-v2.jar
samples/swagger-codegen-cli-v3.jar
.env
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "openapi-typescript-codegen",
"version": "0.27.0",
"name": "@canoapbc/openapi-typescript-codegen",
"version": "0.27.2",
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
"author": "Ferdi Koomen",
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",
"homepage": "https://github.com/CanoaPBC/openapi-typescript-codegen",
"repository": {
"type": "git",
"url": "git+https://github.com/ferdikoomen/openapi-typescript-codegen.git"
"url": "git+https://github.com/CanoaPBC/openapi-typescript-codegen.git"
},
"bugs": {
"url": "https://github.com/ferdikoomen/openapi-typescript-codegen/issues"
Expand Down

0 comments on commit d206b42

Please sign in to comment.