Skip to content

Commit

Permalink
implement github actions workflow (#793)
Browse files Browse the repository at this point in the history
* implement github actions workflow

* fix target
  • Loading branch information
cdimascio authored Dec 30, 2022
1 parent 8d31f9a commit d415425
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build and Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run compile
- name: Test the project
run: npm test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ app.use((err, req, res, next) => {

_**Important:** Ensure express is configured with all relevant body parsers. Body parser middleware functions must be specified prior to any validated routes. See an [example](#example-express-api-server)_.

## [Documentation](https://github.com/cdimascio/express-openapi-validator/wiki/Documentation)
## [Documentation](https://github.com/cdimascio/express-openapi-validator/wiki)

See the [wiki](https://github.com/cdimascio/express-openapi-validator/wiki/Documentation) for complete documenation
See the [wiki](https://github.com/cdimascio/express-openapi-validator/wiki) for complete documenation

## License

Expand Down
9 changes: 8 additions & 1 deletion examples/1-standard/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ info:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: /v1
- url: http://{base_url}/{env_id}
variables:
base_url:
default: my.app.com
description: server
env_id:
default: v1
description: path selector
paths:
/ping:
get:
Expand Down

0 comments on commit d415425

Please sign in to comment.