diff --git a/.github/workflows/validate-markdown.yaml b/.github/workflows/validate-markdown.yaml new file mode 100644 index 0000000000..a127677452 --- /dev/null +++ b/.github/workflows/validate-markdown.yaml @@ -0,0 +1,27 @@ +name: validate-markdown + +# Author: @MikeRalphson +# Issue: https://github.com/OAI/OpenAPI-Specification/issues/2130 + +# +# This workflow validates files in the versions directory matching 3.*.md +# Versions before 3.0 are not validated, as they contain linking errors +# where it is not currently planned to go back and fix them +# + +# run this on push to any branch and creation of pull-requests +on: [push, pull_request] + +jobs: + mdv: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 # checkout repo content + - uses: actions/setup-node@v1 # setup Node.js + with: + node-version: '12.x' + - name: Validate markdown + run: npx mdv versions/3.*.md + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 098bf2e708..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -sudo: false -language: node_js -node_js: - - "node" -script: - - node node_modules/mdv/mdv versions/3.*.md diff --git a/package.json b/package.json index 2b7d19e525..4a08fdf38c 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,7 @@ "schemas/*" ], "dependencies": {}, - "devDependencies": { - "mdv": "^1.0.7" - }, + "devDependencies": {}, "keywords": [ "OpenAPI", "OAS",