2020-09-19 20:53:44 +02:00
|
|
|
name: Validate models.yml
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
validate:
|
|
|
|
name: Validate models.yml
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.15
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.15
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-11-11 12:02:23 +01:00
|
|
|
- name: Build validator
|
2021-01-06 11:32:16 +01:00
|
|
|
run: go build
|
2020-11-11 12:02:23 +01:00
|
|
|
working-directory: docs/modelsvalidator
|
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
|
|
|
|
2020-09-19 20:53:44 +02:00
|
|
|
- name: Validate models.yml
|
2020-11-11 12:02:23 +01:00
|
|
|
run: docs/modelsvalidator/modelsvalidator docs/models.yml
|