Skip to content

Commit

Permalink
try using brew to install uds cli
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed May 9, 2024
1 parent 43b8dee commit 47b6e21
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/actions/install-uds-cli/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Install UDS CLI
description: installs uds-cli from brew
runs:
using: composite
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@4b34604e75af8f8b23b454f0b5ffb7c5d8ce0056 # master

- name: Install UDS CLI
shell: bash
run: |
brew tap defenseunicorns/tap
brew install uds
5 changes: 4 additions & 1 deletion .github/workflows/test-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

- name: Install UDS CLI
uses: ./.github/actions/install-uds-cli

- name: Docs and schemas
run: uds run schema:schema schema:test-schema
run: uds run schema:schema && uds run schema:test-schema

- name: Save logs
if: always()
Expand Down
2 changes: 1 addition & 1 deletion tasks/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ tasks:
- name: test-schema
description: tests if the schema has been modified
actions:
- cmd: ./uds run schema
- task: schema
- cmd: ./hack/test-generate-schema.sh

0 comments on commit 47b6e21

Please sign in to comment.