googlechat: add SpaceURL (URL to webhook space) #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See https://docs.github.com/en/actions/reference/ | |
| on: [push] | |
| name: ci | |
| env: | |
| go-version: 1.26.x | |
| golangci-version: v2.11.4 | |
| jobs: | |
| all: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6 | |
| with: | |
| # By default, actions/checkout will persist the GITHUB_TOKEN, so that further | |
| # steps in the job can perform authenticated git commands (that is: WRITE to | |
| # the repo). Following the Principle of least privilege, we disable this as long | |
| # as we don't need it. | |
| persist-credentials: false | |
| # Installing Go must be done AFTER checking out the code, in order to have | |
| # caching working! | |
| - name: Install Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # ratchet:actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.go-version }} | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # ratchet:golangci/golangci-lint-action@v9 | |
| with: | |
| version: ${{ env.golangci-version }} | |
| - run: go build ./... | |
| - run: go test -coverprofile=coverate.out ./... | |
| env: | |
| GOKIT_TEST_OAUTH_TOKEN: ${{ secrets.GOKIT_TEST_OAUTH_TOKEN }} | |
| GOKIT_TEST_GH_APP_PRIVATE_KEY: ${{ secrets.GOKIT_TEST_GH_APP_PRIVATE_KEY }} | |
| GOKIT_TEST_COMMIT_SHA: ${{ vars.GOKIT_TEST_COMMIT_SHA }} | |
| GOKIT_TEST_REPO_NAME: ${{ vars.GOKIT_TEST_REPO_NAME }} | |
| GOKIT_TEST_REPO_OWNER: ${{ vars.GOKIT_TEST_REPO_OWNER }} | |
| GOKIT_TEST_GH_APP_CLIENT_ID: ${{ vars.GOKIT_TEST_GH_APP_CLIENT_ID }} | |
| GOKIT_TEST_GH_APP_INSTALLATION_ID: ${{ vars.GOKIT_TEST_GH_APP_INSTALLATION_ID }} |