diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 34244936..4e59bad4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - build: + lint: # The type of runner that the job will run on runs-on: ubuntu-latest @@ -49,33 +49,36 @@ jobs: # Test installation argo version - # Make fake kubeconfig for executing argo cli - - name: Make fake kubeconfig + # Make kubeconfig for executing argo cli + - name: Make kubeconfig + env: + CLUSTER_CA: ${{ secrets.TEST_CLUSTER_CA }} + CLUSTER_URL: ${{ secrets.TEST_CLUSTER_URL }} run: | - cat < /tmp/fakekubeconfig + cat < /tmp/kubeconfig apiVersion: v1 - kind: Config clusters: - cluster: - certificate-authority-data: ZHVtbXkK - server: https://localhost:6443 - name: dummy + certificate-authority-data: $CLUSTER_CA + server: $CLUSTER_URL + name: tks-cicd contexts: - context: - cluster: dummy - user: dummy - name: dummy - current-context: dummy + cluster: tks-cicd + user: argo + name: argo@tks-cicd + current-context: argo@tks-cicd + kind: Config preferences: {} users: - - name: dummy + - name: argo user: - username: dummy - password: dummy + username: test + password: test EOF - cat /tmp/fakekubeconfig + cat /tmp/kubeconfig # Runs a Lint command - name: Lint changed file run: | - argo template lint --kubeconfig /tmp/fakekubeconfig ${{ steps.changed-files.outputs.all_changed_files }} + argo template lint --kubeconfig /tmp/kubeconfig ${{ steps.changed-files.outputs.all_changed_files }}