Skip to content

Commit d415425

Browse files
authored
implement github actions workflow (#793)
* implement github actions workflow * fix target
1 parent 8d31f9a commit d415425

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/default.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build and Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Install dependencies
11+
run: npm install
12+
- name: Build the project
13+
run: npm run compile
14+
- name: Test the project
15+
run: npm test

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ app.use((err, req, res, next) => {
7777

7878
_**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)_.
7979

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

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

8484
## License
8585

examples/1-standard/api.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ info:
88
name: Apache 2.0
99
url: https://www.apache.org/licenses/LICENSE-2.0.html
1010
servers:
11-
- url: /v1
11+
- url: http://{base_url}/{env_id}
12+
variables:
13+
base_url:
14+
default: my.app.com
15+
description: server
16+
env_id:
17+
default: v1
18+
description: path selector
1219
paths:
1320
/ping:
1421
get:

0 commit comments

Comments
 (0)