build(deps): bump the github-actions group across 1 directory with 3 updates #249
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: ci-v2 | |
on: | |
push: | |
branches: [ master, qa ] | |
pull_request: | |
branches: [ master, qa ] | |
permissions: | |
contents: read | |
jobs: | |
test-gomod-v2: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: ['1.19.x', '1.20.x', '1.21.x', '1.22.x'] | |
env: | |
working-directory: ./v2 | |
steps: | |
- name: Update base image, intall Python2 and Python3 | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python2 | |
sudo apt-get install -y python3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache go modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.go-version }}-go- | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v0 | |
- name: Install | |
working-directory: ${{env.working-directory}} | |
env: | |
GO111MODULE: on | |
run: | | |
go get . | |
gcloud components install app-engine-python app-engine-go cloud-datastore-emulator app-engine-python-extras --quiet | |
- name: Test gomod v2 | |
env: | |
GO111MODULE: on | |
working-directory: ${{env.working-directory}} | |
run: | | |
export APPENGINE_DEV_APPSERVER=$(which dev_appserver.py) | |
export CLOUDSDK_PYTHON="python3" | |
go test -v -cover -race google.golang.org/appengine/v2/... | |
# TestAPICallAllocations doesn't run under race detector. | |
go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations |