mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 16:42:21 -05:00
parent
23dea8e89a
commit
09c183f4a0
2 changed files with 14 additions and 18 deletions
20
.github/workflows/ci.generate.ts
vendored
20
.github/workflows/ci.generate.ts
vendored
|
@ -108,13 +108,6 @@ const installDenoStep = {
|
||||||
|
|
||||||
const authenticateWithGoogleCloud = {
|
const authenticateWithGoogleCloud = {
|
||||||
name: "Authenticate with Google Cloud",
|
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/'))",
|
|
||||||
].join("\n"),
|
|
||||||
uses: "google-github-actions/auth@v1",
|
uses: "google-github-actions/auth@v1",
|
||||||
with: {
|
with: {
|
||||||
"project_id": "denoland",
|
"project_id": "denoland",
|
||||||
|
@ -335,7 +328,16 @@ const ci = {
|
||||||
if: "matrix.job == 'bench'",
|
if: "matrix.job == 'bench'",
|
||||||
...installNodeStep,
|
...installNodeStep,
|
||||||
},
|
},
|
||||||
authenticateWithGoogleCloud,
|
{
|
||||||
|
if: [
|
||||||
|
"matrix.profile == 'release' &&",
|
||||||
|
"matrix.job == 'test' &&",
|
||||||
|
"github.repository == 'denoland/deno' &&",
|
||||||
|
"(github.ref == 'refs/heads/main' ||",
|
||||||
|
"startsWith(github.ref, 'refs/tags/'))",
|
||||||
|
].join("\n"),
|
||||||
|
...authenticateWithGoogleCloud,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Setup gcloud (unix)",
|
name: "Setup gcloud (unix)",
|
||||||
if: [
|
if: [
|
||||||
|
@ -355,8 +357,8 @@ const ci = {
|
||||||
name: "Setup gcloud (windows)",
|
name: "Setup gcloud (windows)",
|
||||||
if: [
|
if: [
|
||||||
"runner.os == 'Windows' &&",
|
"runner.os == 'Windows' &&",
|
||||||
"matrix.job == 'test' &&",
|
|
||||||
"matrix.profile == 'release' &&",
|
"matrix.profile == 'release' &&",
|
||||||
|
"matrix.job == 'test' &&",
|
||||||
"github.repository == 'denoland/deno' &&",
|
"github.repository == 'denoland/deno' &&",
|
||||||
"(github.ref == 'refs/heads/main' ||",
|
"(github.ref == 'refs/heads/main' ||",
|
||||||
"startsWith(github.ref, 'refs/tags/'))",
|
"startsWith(github.ref, 'refs/tags/'))",
|
||||||
|
|
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -127,13 +127,13 @@ jobs:
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- name: Authenticate with Google Cloud
|
- if: |-
|
||||||
if: |-
|
|
||||||
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/'))))
|
startsWith(github.ref, 'refs/tags/'))))
|
||||||
|
name: Authenticate with Google Cloud
|
||||||
uses: google-github-actions/auth@v1
|
uses: google-github-actions/auth@v1
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
|
@ -154,8 +154,8 @@ jobs:
|
||||||
- name: Setup gcloud (windows)
|
- name: Setup gcloud (windows)
|
||||||
if: |-
|
if: |-
|
||||||
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
||||||
matrix.job == 'test' &&
|
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
|
matrix.job == 'test' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/'))))
|
startsWith(github.ref, 'refs/tags/'))))
|
||||||
|
@ -552,12 +552,6 @@ jobs:
|
||||||
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
|
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- name: Authenticate with Google Cloud
|
- 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
|
uses: google-github-actions/auth@v1
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
|
|
Loading…
Reference in a new issue