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: Install validator
|
2020-10-01 14:14:09 +02:00
|
|
|
run: go get github.com/OpenSlides/openslides-modelsvalidate/cmd/modelsvalidate@v0.1.1
|
2020-09-30 20:13:14 +02:00
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
2020-09-19 20:53:44 +02:00
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Validate models.yml
|
2020-10-05 11:15:14 +02:00
|
|
|
run: $HOME/go/bin/modelsvalidate docs/models.yml
|