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 beb164a
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 3 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
3 changes: 3 additions & 0 deletions .github/workflows/nightly-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

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

- name: Build UDS-CLI binary
run: uds run build-cli-linux-amd

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/nightly-uds-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
with:
fetch-depth: 0

- name: Setup golang
uses: ./.github/actions/golang

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

- name: Build UDS-CLI binary
run: uds run build-cli-linux-amd

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

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

- name: Build CLI
run: |
uds run build-cli-linux-amd
Expand Down Expand Up @@ -72,7 +75,7 @@ jobs:

- name: Run e2e tests
run: |
uds run test:test-e2e
build/uds run test:test-e2e
env:
GITHUB_TOKEN: secrets.GITHUB_TOKEN

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scan-codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

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

- name: Build UDS CLI
run: uds run build-cli-linux-amd

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-e2e-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

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

- name: Build UDS-CLI binary
run: uds run build-cli-linux-amd

Expand Down
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:test-schema

- name: Save logs
if: always()
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

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

- name: Run unit tests
run: uds run test:test-unit

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 beb164a

Please sign in to comment.