|
19 | 19 | with: |
20 | 20 | go-version-file: go.mod |
21 | 21 |
|
22 | | - - uses: infracost/create-github-app-token@v1 |
23 | | - id: app-token |
24 | | - with: |
25 | | - app-id: ${{ secrets.INFRACOST_CI_APP_ID }} |
26 | | - private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }} |
27 | | - owner: ${{ env.TARGET_ORG }} |
28 | | - repositories: cli,config |
29 | | - |
30 | | - - run: | |
31 | | - git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/" |
32 | | -
|
33 | | - - name: Configure private Go modules |
34 | | - run: git config --global url."https://${{ secrets.GO_PRIVATE_TOKEN }}@github.com/".insteadOf "https://github.com/" |
35 | | - |
36 | 22 | - run: go test ./... |
37 | 23 |
|
38 | 24 | lint: |
|
44 | 30 | with: |
45 | 31 | go-version-file: go.mod |
46 | 32 |
|
47 | | - - uses: infracost/create-github-app-token@v1 |
48 | | - id: app-token |
49 | | - with: |
50 | | - app-id: ${{ secrets.INFRACOST_CI_APP_ID }} |
51 | | - private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }} |
52 | | - owner: ${{ env.TARGET_ORG }} |
53 | | - repositories: cli,config |
54 | | - |
55 | | - - run: | |
56 | | - git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/" |
57 | | -
|
58 | | - - name: Configure private Go modules |
59 | | - run: git config --global url."https://${{ secrets.GO_PRIVATE_TOKEN }}@github.com/".insteadOf "https://github.com/" |
60 | | - |
61 | 33 | - uses: golangci/golangci-lint-action@v7 |
62 | 34 | with: |
63 | 35 | version: v2.4 |
|
71 | 43 | with: |
72 | 44 | go-version-file: go.mod |
73 | 45 |
|
74 | | - - uses: infracost/create-github-app-token@v1 |
75 | | - id: app-token |
76 | | - with: |
77 | | - app-id: ${{ secrets.INFRACOST_CI_APP_ID }} |
78 | | - private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }} |
79 | | - owner: ${{ env.TARGET_ORG }} |
80 | | - repositories: cli,config |
81 | | - |
82 | | - - run: | |
83 | | - git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/" |
84 | | -
|
85 | 46 | - name: Check formatting |
86 | 47 | run: test -z "$(gofmt -l .)" |
0 commit comments