summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-01-12 16:19:35 +0100
committerGitHub <noreply@github.com>2023-01-12 16:19:35 +0100
commit1776dca6c784ac399a4414c01ea737171558f809 (patch)
treecc7d58cda19c3b5d229cdd960891fcb3bb53dd31 /.github/workflows/ci.yml
parent4d66be1e056a2c33e0f793af42d6eb99b7246c1d (diff)
ci: update Windows runner, update Google Cloud integration, update Node (#17358)
This commit rolls up following PRs into a single one: - https://github.com/denoland/deno/pull/16672 - https://github.com/denoland/deno/pull/16674 - https://github.com/denoland/deno/pull/16972 Generation script was updated to take into account these changes. Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Geert-Jan Zwiers <geertjanzwiers@protonmail.com> Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 31 insertions, 11 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 87b8438c2..5d9bf48e3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,10 +34,10 @@ jobs:
job: test
profile: release
skip_pr: true
- - os: '${{ github.repository == ''denoland/deno'' && ''windows-2019-xl'' || ''windows-2019'' }}'
+ - os: '${{ github.repository == ''denoland/deno'' && ''windows-2022-xl'' || ''windows-2022'' }}'
job: test
profile: fastci
- - os: '${{ github.repository == ''denoland/deno'' && ''windows-2019-xl'' || ''windows-2019'' }}'
+ - os: '${{ github.repository == ''denoland/deno'' && ''windows-2022-xl'' || ''windows-2022'' }}'
job: test
profile: release
skip_pr: true
@@ -125,6 +125,19 @@ jobs:
with:
node-version: 18
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
+ - name: Authenticate with Google Cloud
+ if: |-
+ !(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release' &&
+ matrix.job == 'test' &&
+ github.repository == 'denoland/deno' &&
+ (github.ref == 'refs/heads/main' ||
+ startsWith(github.ref, 'refs/tags/'))))
+ uses: google-github-actions/auth@v1
+ with:
+ project_id: denoland
+ credentials_json: '${{ secrets.GCP_SA_KEY }}'
+ export_environment_variables: true
+ create_credentials_file: true
- name: Setup gcloud (unix)
if: |-
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
@@ -133,11 +146,9 @@ jobs:
github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/'))))
- uses: google-github-actions/setup-gcloud@v0
+ uses: google-github-actions/setup-gcloud@v1
with:
project_id: denoland
- service_account_key: '${{ secrets.GCP_SA_KEY }}'
- export_default_credentials: true
- name: Setup gcloud (windows)
if: |-
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
@@ -146,13 +157,11 @@ jobs:
github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/'))))
- uses: google-github-actions/setup-gcloud@v0
+ uses: google-github-actions/setup-gcloud@v1
env:
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
with:
project_id: denoland
- service_account_key: '${{ secrets.GCP_SA_KEY }}'
- export_default_credentials: true
- name: Configure canary build
if: |-
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
@@ -543,12 +552,23 @@ jobs:
- build
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
steps:
+ - name: Authenticate with Google Cloud
+ if: |-
+ matrix.profile == 'release' &&
+ matrix.job == 'test' &&
+ github.repository == 'denoland/deno' &&
+ (github.ref == 'refs/heads/main' ||
+ startsWith(github.ref, 'refs/tags/'))
+ uses: google-github-actions/auth@v1
+ with:
+ project_id: denoland
+ credentials_json: '${{ secrets.GCP_SA_KEY }}'
+ export_environment_variables: true
+ create_credentials_file: true
- name: Setup gcloud
- uses: google-github-actions/setup-gcloud@v0
+ uses: google-github-actions/setup-gcloud@v1
with:
project_id: denoland
- service_account_key: '${{ secrets.GCP_SA_KEY }}'
- export_default_credentials: true
- name: Upload canary version file to dl.deno.land
run: |-
echo ${{ github.sha }} > canary-latest.txt