feat: create typeform connector #462
This file contains 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
name: Test | |
permissions: | |
id-token: write # Enable OIDC | |
pull-requests: write | |
contents: write | |
packages: write | |
issues: write | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Test on ${{ matrix.gover }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
gover: | |
- "1.21" | |
- "1.22" | |
env: | |
GOVER: ${{ matrix.gover }} | |
GOLANGCILINT_VER: v1.58 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GOVER }} | |
- name: Tidy | |
run: make tidy | |
- name: Test | |
run: make test | |
# - name: Cover | |
# uses: codecov/codecov-action@v4 | |
# - name: Lint | |
# uses: golangci/golangci-lint-action@v6 | |
# with: | |
# version: ${{ env.GOLANGCILINT_VER }} | |
# skip-cache: true | |
# args: --timeout=10m0s | |
- name: Run go mod tidy check diff | |
run: make modtidy check-diff | |
- name: Run go mod tidy | |
run: make modtidy | |
prerelease: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Release | |
uses: googleapis/release-please-action@v4 | |
with: | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json | |
token: ${{ secrets.GIT_RELEASE_TOKEN }} # <-- PAT secret name | |
# - name: tag major and minor versions | |
# if: ${{ steps.release.outputs.release_created }} | |
# run: | | |
# git config user.name github-actions[bot] | |
# git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
# git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git" | |
# git tag -d v${{ steps.release.outputs.major }} || true | |
# git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true | |
# git push origin :v${{ steps.release.outputs.major }} || true | |
# git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true | |
# git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" | |
# git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" | |
# git push origin v${{ steps.release.outputs.major }} | |
# git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} |