Skip to content

Commit 149e6be

Browse files
authored
actions: add mdv to replace Travis (#2139)
1 parent 2d6a180 commit 149e6be

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: validate-markdown
2+
3+
# Author: @MikeRalphson
4+
# Issue: https://github.com/OAI/OpenAPI-Specification/issues/2130
5+
6+
#
7+
# This workflow validates files in the versions directory matching 3.*.md
8+
# Versions before 3.0 are not validated, as they contain linking errors
9+
# where it is not currently planned to go back and fix them
10+
#
11+
12+
# run this on push to any branch and creation of pull-requests
13+
on: [push, pull_request]
14+
15+
jobs:
16+
mdv:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v1 # checkout repo content
22+
- uses: actions/setup-node@v1 # setup Node.js
23+
with:
24+
node-version: '12.x'
25+
- name: Validate markdown
26+
run: npx mdv versions/3.*.md
27+

.travis.yml

-6
This file was deleted.

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"schemas/*"
1919
],
2020
"dependencies": {},
21-
"devDependencies": {
22-
"mdv": "^1.0.7"
23-
},
21+
"devDependencies": {},
2422
"keywords": [
2523
"OpenAPI",
2624
"OAS",

0 commit comments

Comments
 (0)