Skip to content

chore(deps): bump the github-actions group across 1 directory with 11 updates #21

chore(deps): bump the github-actions group across 1 directory with 11 updates

chore(deps): bump the github-actions group across 1 directory with 11 updates #21

Workflow file for this run

name: Run Tests
on: [ pull_request ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.mod"
cache: false
- name: Install dependencies
run: go get ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.12.2
args: --issues-exit-code=0
- name: Run tests
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
env:
# we need an AMPLIENCE_HUB_ID dedicated to testing
# TF_ACC: 1
AMPLIENCE_CLIENT_ID: ${{ secrets.AMPLIENCE_CLIENT_ID }}
AMPLIENCE_CLIENT_SECRET: ${{ secrets.AMPLIENCE_CLIENT_SECRET }}
AMPLIENCE_HUB_ID: ${{ secrets.AMPLIENCE_HUB_ID }}
- name: Upload to codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
verbose: true
- name: build binary
uses: goreleaser/goreleaser-action@1a80836c5c9d9e5755a25cb59ec6f45a3b5f41a8 # v7.2.1
with:
args: build --snapshot --clean --single-target
env:
GOPATH: ${{ env.GOPATH }}
changie:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
permissions:
contents: write
pull-requests: write
actions: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Prepare release
uses: labd/changie-release-action@1299f6ba27a50b2f2beb09d73bcbdc1d87a415f4 # v0.6.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
release-workflow: 'release.yaml'