ci: install opa from source

This commit is contained in:
Caleb Doxsey 2020-04-17 08:23:50 -06:00 committed by Caleb Doxsey
parent 6cda829ed8
commit 7aa97dee68
2 changed files with 1 additions and 6 deletions

View file

@ -31,12 +31,6 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Install OPA
run: |
OS=$(uname | tr '[:upper:]' '[:lower:]')
cd /usr/local/bin
sudo curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_${OS}_amd64
sudo chmod +x ./opa
- name: Checkout code
uses: actions/checkout@v2
- name: Test

View file

@ -38,6 +38,7 @@ build-deps: ## Install build dependencies
@echo "==> $@"
@cd /tmp; GO111MODULE=on go get -u github.com/client9/misspell/cmd/misspell
@cd /tmp; GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_VERSION}
@cd /tmp; GO111MODULE=on go get -u github.com/open-policy-agent/opa
.PHONY: docs
docs: ## Start the vuepress docs development server