function(deps): bump github.com/GoogleCloudPlatform/functions-framework-go from 1.8.1 to 1.9.0 in /function #54
Workflow file for this run
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: Go Integrations | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
issues: read | |
actions: read | |
pull-requests: read | |
security-events: write | |
jobs: | |
prepare: | |
name: Prepare | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: infra/go.mod | |
check-latest: true | |
cache-dependency-path: | | |
.bingo/*.sum | |
infra/go.sum | |
- name: Set up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
check-latest: true | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Cache the Terraform Provider bindings | |
id: cdktf | |
uses: actions/cache@v4 | |
with: | |
# Save the .task folder alongside the generated folder to allow task | |
# to record the get task as having been already run, enabling this | |
# step to be bypassed where possible in the testing steps below | |
path: | | |
infra/.task | |
infra/generated | |
key: cache-cdktf-infra-${{ hashFiles('infra/cdktf.json') }} | |
- name: Cache the Yarn modules | |
id: yarn | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
key: cache-yarn-root-${{ hashFiles('yarn.lock') }} | |
- name: Install the bingo Go tool | |
run: |- | |
go install \ | |
github.com/bwplotka/bingo@latest | |
- name: Install the required Go tools | |
run: |- | |
bingo get --link | |
- name: Install the required NodeJS tools | |
if: ${{ steps.yarn.outputs.cache-hit != 'true' }} | |
run: |- | |
yarn install \ | |
--ignore-engines \ | |
--no-progress | |
- name: Build the Terraform Provider bindings | |
if: ${{ steps.cdktf.outputs.cache-hit != 'true' }} | |
working-directory: infra | |
run: |- | |
task get \ | |
--output group \ | |
--output-group-begin '::group::{{ .TASK }}' \ | |
--output-group-end '::endgroup::' | |
linting: | |
strategy: | |
matrix: | |
module: | |
- 'function' | |
- 'infra' | |
fail-fast: false | |
name: Linting | |
runs-on: ubuntu-latest | |
needs: | |
- prepare | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ matrix.module }}/go.mod | |
check-latest: true | |
cache-dependency-path: | | |
.bingo/*.sum | |
${{ matrix.module }}/go.sum | |
- name: Set up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
check-latest: true | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Cache the Terraform Provider bindings | |
id: cdktf | |
if: ${{ matrix.module == 'infra' }} | |
uses: actions/cache@v4 | |
with: | |
path: | | |
infra/.task | |
infra/generated | |
key: cache-cdktf-${{ matrix.module }}-${{ hashFiles('infra/cdktf.json') }} | |
- name: Cache the Yarn modules | |
id: yarn | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
key: cache-yarn-root-${{ hashFiles('yarn.lock') }} | |
- name: Install the bingo Go tool | |
run: |- | |
go install \ | |
github.com/bwplotka/bingo@latest | |
- name: Install the required Go tools | |
run: |- | |
bingo get --link | |
- name: Install the required NodeJS tools | |
if: ${{ steps.yarn.outputs.cache-hit != 'true' }} | |
run: |- | |
yarn install \ | |
--ignore-engines \ | |
--no-progress | |
- name: Lint the ${{ matrix.module }} Go module | |
working-directory: ${{ matrix.module }} | |
run: |- | |
task lint \ | |
--output group \ | |
--output-group-begin '::group::{{ .TASK }}' \ | |
--output-group-end '::endgroup::' | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
needs: | |
- prepare | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: infra/go.mod | |
check-latest: true | |
cache-dependency-path: | | |
.bingo/*.sum | |
infra/go.sum | |
- name: Set up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
check-latest: true | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Cache the Yarn modules | |
id: yarn | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
key: cache-yarn-root-${{ hashFiles('yarn.lock') }} | |
- name: Install the bingo Go tool | |
run: |- | |
go install \ | |
github.com/bwplotka/bingo@latest | |
- name: Install the required Go tools | |
run: |- | |
bingo get --link | |
- name: Install the required NodeJS tools | |
if: ${{ steps.yarn.outputs.cache-hit != 'true' }} | |
run: |- | |
yarn install \ | |
--ignore-engines \ | |
--no-progress | |
- name: Lint with Prettier | |
run: |- | |
task prettier \ | |
--output group \ | |
--output-group-begin '::group::{{ .TASK }}' \ | |
--output-group-end '::endgroup::' | |
testing: | |
strategy: | |
matrix: | |
version: | |
- '1.20' | |
- '1.21' | |
module: | |
- 'function' | |
- 'infra' | |
fail-fast: false | |
needs: | |
- linting | |
- prettier | |
name: Testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go v${{ matrix.version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ matrix.module }}/go.mod | |
check-latest: true | |
cache-dependency-path: | | |
.bingo/*.sum | |
${{ matrix.module }}/go.sum | |
- name: Set up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
check-latest: true | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Cache the Terraform Provider bindings | |
id: cdktf | |
if: ${{ matrix.module == 'infra' }} | |
uses: actions/cache@v4 | |
with: | |
path: | | |
infra/.task | |
infra/generated | |
key: cache-cdktf-${{ matrix.module }}-${{ hashFiles('infra/cdktf.json') }} | |
- name: Cache the Yarn modules | |
id: yarn | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
key: cache-yarn-root-${{ hashFiles('yarn.lock') }} | |
- name: Install the bingo Go tool | |
run: |- | |
go install \ | |
github.com/bwplotka/bingo@latest | |
- name: Install the required Go tools | |
run: |- | |
bingo get --link | |
- name: Install the required NodeJS tools | |
if: ${{ steps.yarn.outputs.cache-hit != 'true' }} | |
run: |- | |
yarn install \ | |
--ignore-engines \ | |
--no-progress | |
- name: Test the ${{ matrix.module }} Go module | |
working-directory: ${{ matrix.module }} | |
run: |- | |
task test \ | |
--output group \ | |
--output-group-begin '::group::{{ .TASK }}' \ | |
--output-group-end '::endgroup::' |