Skip to content

Commit

Permalink
Managed by Terraform: - .github/workflows/validate.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Bot committed Sep 11, 2024
1 parent 6768588 commit 0210d2b
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,26 @@ name: Validate
on:
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Validate
runs-on: ubuntu-latest
env:
MASSDRIVER_API_KEY: ${{ secrets.MASSDRIVER_BETA_RELEASE_CHANNEL_API_KEY }}
MASSDRIVER_ORG_ID: ${{ secrets.MASSDRIVER_BETA_RELEASE_CHANNEL_ORGANIZATION_ID }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Download Massdriver CLI
uses: dsaltares/[email protected]
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

uses: actions/checkout@v3
- name: Install Massdriver CLI
uses: massdriver-cloud/actions@v5
- name: Build Bundle
uses: massdriver-cloud/actions/bundle_build@v5
- 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
Expand Down

0 comments on commit 0210d2b

Please sign in to comment.