-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 972 Bytes
/
validate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Validate OCPI OpenAPI specification"
on:
push:
branches:
- main
tags:
- v*
paths-ignore:
- "**.md"
pull_request:
types: [ opened, synchronize ]
paths-ignore:
- "**.md"
jobs:
validate-oicp-v230-specification:
name: "Validate the OICP 2.3.0 OpenAPI specification"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Swagger Editor Validator
uses: char0n/swagger-editor-validate@v1.3.2
with:
definition-file: ./2.3.0/api/2.3.0.spec.yml
fmt:
name: Format Go code
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Download Go modules
run: |
cd 2.3.0
go mod download
- name: Format Go code
run: go fmt ./2.3.0/...