Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate code from googleapis/nodejs-game-servers #2820

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
027e386
Initial client library creation
telpirion Feb 10, 2020
af278cd
feat: updates package.json files and quickstart
telpirion Feb 11, 2020
8caa892
Adds quickstart
telpirion Feb 21, 2020
5ca79e0
build: get the build passing (#17)
yoshi-automation Mar 1, 2020
19e1a8c
build: get sample and system tests passing (#18)
JustinBeckwith Mar 1, 2020
bcb3db6
chore(deps): update dependency @types/mocha (#1)
renovate-bot Mar 1, 2020
0e2442d
chore(deps): update dependency c8 to v7 (#2)
renovate-bot Mar 1, 2020
20bb010
chore: release 1.0.0 (#4)
release-please[bot] Mar 2, 2020
f0f2cd1
feat: adds CRUD samples for GS realms (#21)
telpirion Mar 3, 2020
f707d56
chore: release 1.1.0 (#22)
release-please[bot] Mar 3, 2020
437958d
test: adds cleanup function for tests (#28)
telpirion Mar 10, 2020
eb25adf
build: generator updates and new coverage approach (#59)
yoshi-automation Apr 27, 2020
cd1fe75
feat: adds CRUD samples, tests for GS clusters (#24)
telpirion Apr 29, 2020
55e4774
chore(deps): update dependency uuid to v8 (#63)
renovate-bot May 1, 2020
dbd6766
chore: release 2.0.0 (#38)
release-please[bot] Jun 4, 2020
3a4ed17
chore(deps): update dependency mocha to v8 (#72)
renovate-bot Jun 11, 2020
f640609
chore: release 2.0.1 (#75)
release-please[bot] Jun 16, 2020
cdd0d5e
test: fix sample test by pointing at a shared cluster with Agones (#81)
xwxw-g Jul 9, 2020
3a801b2
chore: release 2.0.2 (#82)
release-please[bot] Jul 10, 2020
df6a323
docs(samples): fix sample formatting issues (#94)
pooneh-m Jul 16, 2020
f9bee80
docs(samples): Add Game Server deployment samples (#92)
pooneh-m Jul 16, 2020
b3744de
docs(samples): change tags to be aligned with golang samples (#97)
pooneh-m Jul 16, 2020
280fdd5
Add samples for GameServerConfigs (#98)
pooneh-m Jul 24, 2020
fc11284
Add sample for game server rollout (#102)
pooneh-m Jul 24, 2020
88e03b8
chore: release 2.1.0 (#110)
release-please[bot] Aug 5, 2020
7888188
chore: release 2.1.1 (#133)
release-please[bot] Nov 11, 2020
53d0d7c
chore: release 2.1.2 (#137)
release-please[bot] Dec 2, 2020
e4836ee
chore: release 2.2.0 (#143)
release-please[bot] Jan 12, 2021
034c46c
chore: release 2.3.0 (#148)
release-please[bot] Mar 2, 2021
1673277
chore: migrate to owl bot (#153)
SurferJeffAtGoogle May 18, 2021
74b48a7
chore: release 2.3.1 (#163)
release-please[bot] May 20, 2021
acb1cdc
chore: release 2.3.2 (#173)
release-please[bot] May 24, 2021
21c26e7
chore: release 2.3.3 (#180)
release-please[bot] Jun 10, 2021
06073a6
chore: release 2.3.4 (#187)
release-please[bot] Jun 22, 2021
b243b40
chore: release 2.3.5 (#193)
release-please[bot] Jun 29, 2021
a74409e
chore: release 2.3.6 (#197)
release-please[bot] Jul 12, 2021
5279fdd
chore: release 2.3.7 (#199)
release-please[bot] Jul 16, 2021
9629897
chore: release 2.3.8 (#207)
release-please[bot] Aug 17, 2021
24a6f06
chore: release 2.4.0 (#210)
release-please[bot] Aug 24, 2021
6460884
chore: release 2.5.0 (#214)
release-please[bot] Aug 30, 2021
9c82bac
chore: show cluster installation state details for get and list metho…
irataxy Sep 2, 2021
4ab00d4
docs(samples): add auto-generated samples for Node with api short nam…
gcf-owl-bot[bot] Sep 28, 2021
c6dc56c
docs: add update samples (#230)
irataxy Nov 18, 2021
0e04fda
build!: update library to use Node 12 (#266)
alexander-fenster May 17, 2022
d018292
chore(main): release 3.0.0 (#267)
release-please[bot] May 18, 2022
2f6b00d
chore(main): release 3.1.0 (#272)
release-please[bot] Jul 5, 2022
189fb36
build: do not test if service is unavailable (#275)
sofisl Jul 12, 2022
712e0d0
chore(main): release 3.1.1 (#307)
release-please[bot] Sep 7, 2022
909231d
chore(deps): update dependency uuid to v9 (#312)
renovate-bot Sep 8, 2022
bae504b
chore(main): release 3.1.2 (#314)
release-please[bot] Sep 22, 2022
922317e
Merge remote-tracking branch 'migration/main' into nodejs-game-server…
pattishin Nov 9, 2022
15d7bc3
chore: generate new workflow for migrating game-servers samples
pattishin Nov 10, 2022
07a16b6
Merge branch 'main' into nodejs-game-servers-migration
pattishin Nov 10, 2022
888d590
refactor: resolve merge conflicts
pattishin Nov 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/apengine-metadata-flexible.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: apengine-metadata-flexible
on:
push:
branches:
- main
paths:
- 'apengine/metadata/flexible/**'
pull_request:
paths:
- 'apengine/metadata/flexible/**'
pull_request_target:
types: [labeled]
schedule:
- cron: '0 0 * * 0'
jobs:
test:
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: 'write'
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/[email protected]
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: 'google-github-actions/[email protected]'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/[email protected]
with:
node-version: 16
- run: npm install
working-directory: apengine/metadata/flexible
- run: npm test
working-directory: apengine/metadata/flexible
env:
MOCHA_REPORTER_SUITENAME: apengine_metadata_flexible
MOCHA_REPORTER_OUTPUT: apengine_metadata_flexible_sponge_log.xml
MOCHA_REPORTER: xunit
- if: ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'actions:force-run',
owner: 'GoogleCloudPlatform',
repo: 'nodejs-docs-samples',
issue_number: context.payload.pull_request.number
});
} catch (e) {
if (!e.message.includes('Label does not exist')) {
throw e;
}
}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
Copy link
Contributor

@NimJay NimJay Nov 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue:
I think we need to redo the "Add new samples" section from CONTRIBUTING.md for this pull-request.
You will need to:

  1. Add "game-servers/snippets" to /.github/workflows/workflows.json.
  2. Run node .github/workflows/generate.js.
  3. Only commit the .github/workflows/game-servers-snippets.yaml file created by step 2. Do not commit the other files (from .github/workflows) that were created/modified by step 2.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it! 👍🏼

8 changes: 4 additions & 4 deletions .github/workflows/appengine-analytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand All @@ -32,9 +32,9 @@ jobs:
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/analytics
- run: npm test
Expand All @@ -60,7 +60,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/appengine-building-an-app-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand All @@ -32,9 +32,9 @@ jobs:
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/building-an-app/build
- run: npm test
Expand All @@ -60,7 +60,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/appengine-building-an-app-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/building-an-app/update
- run: npm test
Expand All @@ -60,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/appengine-datastore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/datastore
- run: npm test
Expand All @@ -61,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/appengine-endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/endpoints
- run: npm test
Expand All @@ -60,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/appengine-hello-world-flexible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/hello-world/flexible
- run: npm test
Expand All @@ -60,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/appengine-hello-world-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/hello-world/standard
- run: npm test
Expand All @@ -60,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/appengine-memcached.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/memcached
- run: npm test
Expand All @@ -60,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/appengine-metadata-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ jobs:
pull-requests: 'write'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
<<<<<<< HEAD
- uses: 'google-github-actions/[email protected]'
=======
- uses: google-github-actions/[email protected]
>>>>>>> main
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: '[email protected]'
create_credentials_file: 'true'
token_format: 'access_token'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: 14
node-version: 16
- run: npm install
working-directory: appengine/metadata/standard
- run: npm test
Expand All @@ -61,7 +64,7 @@ jobs:
throw e;
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
Expand Down
Loading