|
1 | 1 | name: Integration test for setup-kubectl |
2 | 2 | on: # rebuild any PRs and main branch changes |
3 | | - pull_request: |
4 | | - branches: |
5 | | - - main |
6 | | - - "releases/*" |
7 | | - push: |
8 | | - branches: |
9 | | - - main |
10 | | - - "releases/*" |
| 3 | + pull_request: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + - 'releases/*' |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + - 'releases/*' |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - run-integration-test: |
14 | | - name: Validate release and master branch |
15 | | - runs-on: ubuntu-latest |
16 | | - env: |
17 | | - KUBECONFIG: /home/runner/.kube/config |
18 | | - PR_BASE_REF: ${{ github.event.pull_request.base.ref }} |
19 | | - steps: |
20 | | - - uses: actions/checkout@v2 |
21 | | - name: Checkout from PR branch |
| 13 | + run-integration-test: |
| 14 | + name: Validate release and master branch |
| 15 | + runs-on: ubuntu-latest |
| 16 | + env: |
| 17 | + KUBECONFIG: /home/runner/.kube/config |
| 18 | + PR_BASE_REF: ${{ github.event.pull_request.base.ref }} |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v2 |
| 21 | + name: Checkout from PR branch |
22 | 22 |
|
23 | | - - id: action-npm-build |
24 | | - name: npm install and build |
25 | | - run: | |
26 | | - echo $PR_BASE_REF |
27 | | - if [[ $PR_BASE_REF != releases/* ]]; then |
28 | | - npm install |
29 | | - npm run build |
30 | | - fi |
| 23 | + - id: action-npm-build |
| 24 | + name: npm install and build |
| 25 | + run: | |
| 26 | + echo $PR_BASE_REF |
| 27 | + if [[ $PR_BASE_REF != releases/* ]]; then |
| 28 | + npm install |
| 29 | + npm run build |
| 30 | + fi |
31 | 31 |
|
32 | | - - uses: actions/setup-python@v2 |
33 | | - name: Install Python |
34 | | - with: |
35 | | - python-version: "3.x" |
| 32 | + - uses: actions/setup-python@v2 |
| 33 | + name: Install Python |
| 34 | + with: |
| 35 | + python-version: '3.x' |
36 | 36 |
|
37 | | - - name: Install requests library |
38 | | - run: pip install requests |
| 37 | + - name: Install requests library |
| 38 | + run: pip install requests |
39 | 39 |
|
40 | | - - name: Validate kubectl setup |
41 | | - run: python test/validate-kubectl.py !v1.15.1 |
| 40 | + - name: Validate kubectl setup |
| 41 | + run: python test/validate-kubectl.py latest |
42 | 42 |
|
43 | | - - name: Setup kubectl |
44 | | - uses: ./ |
45 | | - with: |
46 | | - version: "v1.15.1" |
| 43 | + - name: Setup kubectl |
| 44 | + uses: ./ |
| 45 | + with: |
| 46 | + version: 'v1.15.1' |
47 | 47 |
|
48 | | - - name: Validate kubectl setup |
49 | | - run: python test/validate-kubectl.py 'v1.15.1' |
| 48 | + - name: Validate kubectl setup |
| 49 | + run: python test/validate-kubectl.py 'v1.15.1' |
0 commit comments