-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (42 loc) · 1.26 KB
/
install.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
43
44
45
46
47
48
49
50
---
# This workflow tests that rule types and profiles are installable
name: Install
on:
pull_request:
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
check-latest: true
- name: Run minder server in the background
run:
go run github.com/stacklok/minder/cmd/dev@latest testserver &
- name: install grpcurl
run: |
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
- name: Persist local configuration
run: |
cat <<EOF > /tmp/minder.yaml
grpc_server:
host: localhost
port: 8090
insecure: true
identity:
cli:
issuer_url: http://localhost:8081
client_id: minder-cli
EOF
- name: Create user using grpcul
run: |
while true; do
grpcurl -plaintext -H "Authorization: Bearer foo" localhost:8090 minder.v1.UserService/CreateUser
if [ $? -eq 0 ]; then
break
fi
sleep 1
done