forked from linkerd/website
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.7 KB
/
dx.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: dx
on: push
jobs:
runme:
runs-on: ubuntu-latest
environment: prod
concurrency: ${{ vars.CLUSTER_NAME }}-cluster
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- id: 'gcloud-auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: ${{ vars.GCLOUD_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GCLOUD_SERVICE_ACCOUNT }}
- id: 'get-credentials'
uses: 'google-github-actions/get-gke-credentials@v1'
with:
cluster_name: ${{ vars.CLUSTER_NAME }}
location: ${{ vars.CLUSTER_LOCATION }}
- uses: azure/setup-kubectl@v3
with:
version: 'v1.27.4'
- name: Check kubectl version
run: |
kubectl version
- name: Install Linkerd
run: |
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh
- name: Add Linkerd to PATH
run: |
echo "$PATH:/home/runner/.linkerd2/bin" >> $GITHUB_PATH
- name: Validate Linkerd install
run: linkerd version
- name: 'Initialize Git submodules'
run: |
git submodule update --init
- name: Run Bats Tests
uses: stateful/runme-action@v1
with:
cwd: ${{ env.GITHUB_WORKSPACE }}
serverAddress: ${{ vars.RUNME_ADDRESS }}
run: npx bats ./tests/runme/getting-started.bats
env:
NO_COLOR: true
FROM_CI: true
RUNME_SERVER_ADDR: ${{ vars.RUNME_ADDRESS }}