-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.4 KB
/
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
# WARNING: This file is managed by: https://github.com/massdriver-cloud/bundle-github-repo-manager
# DO NOT EDIT HERE. It will be over written.
name: Validate
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download Massdriver CLI
uses: dsaltares/fetch-gh-release-asset@0.0.8
with:
repo: "massdriver-cloud/massdriver-cli"
file: "^mass-.*-linux-amd64\\.tar\\.gz$"
regex: true
token: ${{ secrets.ORGANIZATION_GITHUB_TOKEN }}
- name: Build
env:
MASSDRIVER_API_KEY: ${{ secrets.MASSDRIVER_BETA_RELEASE_CHANNEL_API_KEY }}
run: tar -xzf mass-*.tar.gz -C /usr/local/bin && rm -rf mass-*.tar.gz .git* && mass bundle build massdriver.yaml
- name: Validate params schema
run: mass schema validate -s https://json-schema.org/draft-07/schema -d ./schema-params.json
- name: Validate connections schema
run: mass schema validate -s https://json-schema.org/draft-07/schema -d ./schema-connections.json
- name: Validate artifacts schema
run: mass schema validate -s https://json-schema.org/draft-07/schema -d ./schema-artifacts.json
- name: Terraform validate
uses: dflook/terraform-validate@v1
id: validate
with:
path: src