|
66 | 66 | - uses: webfactory/ssh-agent@v0.4.1 |
67 | 67 | with: |
68 | 68 | ssh-private-key: "${{ secrets.SSH_PRIVATE_KEY }}" |
| 69 | + - name: Download StackHead CLI artifact |
| 70 | + uses: actions/download-artifact@v2 |
| 71 | + with: |
| 72 | + name: stackhead-cli |
| 73 | + path: /home/runner/bin |
| 74 | + - name: Set execution permission on binary |
| 75 | + run: chmod +x /home/runner/bin/stackhead-cli |
| 76 | + working-directory: /home/runner/bin |
| 77 | + - name: Perform validation tests |
| 78 | + run: | |
| 79 | + /home/runner/bin/stackhead-cli init --version next -v |
| 80 | + git clone --depth=1 --branch next https://github.com/getstackhead/stackhead.git stackhead_repo |
| 81 | + /home/runner/bin/stackhead-cli cli validate ./stackhead_repo/schemas/examples/cli-config/valid/cli.yml |
| 82 | + /home/runner/bin/stackhead-cli module validate ./stackhead_repo/schemas/examples/module-config/valid/container-module.yml |
| 83 | + /home/runner/bin/stackhead-cli project validate ./stackhead_repo/schemas/examples/project-definition/valid/docker_project.yml |
69 | 84 | - name: Setup Hetzner server |
70 | 85 | id: setup_server |
71 | 86 | uses: saitho/hetzner-cloud-action@v1.1.0 |
@@ -98,21 +113,6 @@ jobs: |
98 | 113 | proxied: 0 |
99 | 114 | token: "${{ secrets.CLOUDFLARE_TOKEN }}" |
100 | 115 | zone: "${{ secrets.CLOUDFLARE_ZONE }}" |
101 | | - - name: Download StackHead CLI artifact |
102 | | - uses: actions/download-artifact@v2 |
103 | | - with: |
104 | | - name: stackhead-cli |
105 | | - path: /home/runner/bin |
106 | | - - name: Set execution permission on binary |
107 | | - run: chmod +x /home/runner/bin/stackhead-cli |
108 | | - working-directory: /home/runner/bin |
109 | | - - name: Perform validation tests |
110 | | - run: | |
111 | | - /home/runner/bin/stackhead-cli init --version next -v |
112 | | - git clone --depth=1 --branch next https://github.com/getstackhead/stackhead.git stackhead_repo |
113 | | - /home/runner/bin/stackhead-cli cli validate ./stackhead_repo/schemas/examples/cli-config/valid/cli.yml |
114 | | - /home/runner/bin/stackhead-cli module validate ./stackhead_repo/schemas/examples/module-config/valid/container-module.yml |
115 | | - /home/runner/bin/stackhead-cli project validate ./stackhead_repo/schemas/examples/project-definition/valid/docker_project.yml |
116 | 116 | - name: Perform integration test |
117 | 117 | uses: ./actions/integration-test |
118 | 118 | with: |
|
0 commit comments