Skip to content

Commit 922c797

Browse files
committed
[ci] Standardize node version and timezones
Quick change to standardize on a single timezone across all workflows and to use the same version of node (18.20.1). Also updates .nvmrc ghstack-source-id: e1d4300 Pull Request resolved: #30323
1 parent ff3f1fa commit 922c797

13 files changed

+66
-31
lines changed

.github/workflows/compiler_playground.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ on:
55
branches: [main]
66
pull_request:
77
paths:
8-
- "compiler/**"
8+
- compiler/**
99
- .github/workflows/compiler-playground.yml
1010

11+
env:
12+
TZ: /usr/share/zoneinfo/America/Los_Angeles
13+
1114
defaults:
1215
run:
1316
working-directory: compiler
@@ -20,8 +23,8 @@ jobs:
2023
- uses: actions/checkout@v4
2124
- uses: actions/setup-node@v4
2225
with:
23-
node-version: 18.x
24-
cache: "yarn"
26+
node-version: 18.20.1
27+
cache: yarn
2528
cache-dependency-path: compiler/yarn.lock
2629
- name: Restore cached node_modules
2730
uses: actions/cache@v4

.github/workflows/compiler_rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
env:
1919
CARGO_TERM_COLOR: always
2020
RUSTFLAGS: -Dwarnings
21+
TZ: /usr/share/zoneinfo/America/Los_Angeles
2122

2223
defaults:
2324
run:

.github/workflows/compiler_typescript.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ on:
55
branches: [main]
66
pull_request:
77
paths:
8-
- "compiler/**"
8+
- compiler/**
99
- .github/workflows/compiler-typescript.yml
1010

11+
env:
12+
TZ: /usr/share/zoneinfo/America/Los_Angeles
13+
1114
defaults:
1215
run:
1316
working-directory: compiler
@@ -31,8 +34,8 @@ jobs:
3134
- uses: actions/checkout@v4
3235
- uses: actions/setup-node@v4
3336
with:
34-
node-version: 18.x
35-
cache: "yarn"
37+
node-version: 18.20.1
38+
cache: yarn
3639
cache-dependency-path: compiler/yarn.lock
3740
- name: Restore cached node_modules
3841
uses: actions/cache@v4
@@ -50,8 +53,8 @@ jobs:
5053
- uses: actions/checkout@v4
5154
- uses: actions/setup-node@v4
5255
with:
53-
node-version: 18.x
54-
cache: "yarn"
56+
node-version: 18.20.1
57+
cache: yarn
5558
cache-dependency-path: compiler/yarn.lock
5659
- name: Restore cached node_modules
5760
uses: actions/cache@v4
@@ -74,8 +77,8 @@ jobs:
7477
- uses: actions/checkout@v4
7578
- uses: actions/setup-node@v4
7679
with:
77-
node-version: 18.x
78-
cache: "yarn"
80+
node-version: 18.20.1
81+
cache: yarn
7982
cache-dependency-path: compiler/yarn.lock
8083
- name: Restore cached node_modules
8184
uses: actions/cache@v4

.github/workflows/devtools_check_repro.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
issue_comment:
66
types: [created, edited]
77

8+
env:
9+
TZ: /usr/share/zoneinfo/America/Los_Angeles
10+
811
jobs:
912
check-repro:
1013
runs-on: ubuntu-latest

.github/workflows/runtime_commit_artifacts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main, meta-www, meta-fbsource]
66

7+
env:
8+
TZ: /usr/share/zoneinfo/America/Los_Angeles
9+
710
jobs:
811
download_artifacts:
912
runs-on: ubuntu-latest

.github/workflows/runtime_fizz.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55
branches: [main]
66
pull_request:
77
paths-ignore:
8-
- 'compiler/**'
8+
- compiler/**
9+
10+
env:
11+
TZ: /usr/share/zoneinfo/America/Los_Angeles
912

1013
jobs:
1114
check_generated_fizz_runtime:
@@ -15,8 +18,8 @@ jobs:
1518
- uses: actions/checkout@v4
1619
- uses: actions/setup-node@v4
1720
with:
18-
node-version: 18.x
19-
cache: "yarn"
21+
node-version: 18.20.1
22+
cache: yarn
2023
cache-dependency-path: yarn.lock
2124
- name: Restore cached node_modules
2225
uses: actions/cache@v4

.github/workflows/runtime_flags.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55
branches: [main]
66
pull_request:
77
paths-ignore:
8-
- 'compiler/**'
8+
- compiler/**
9+
10+
env:
11+
TZ: /usr/share/zoneinfo/America/Los_Angeles
912

1013
jobs:
1114
flags:
@@ -15,8 +18,8 @@ jobs:
1518
- uses: actions/checkout@v4
1619
- uses: actions/setup-node@v4
1720
with:
18-
node-version: 18.x
19-
cache: "yarn"
21+
node-version: 18.20.1
22+
cache: yarn
2023
cache-dependency-path: yarn.lock
2124
- name: Restore cached node_modules
2225
uses: actions/cache@v4

.github/workflows/runtime_flow.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55
branches: [main]
66
pull_request:
77
paths-ignore:
8-
- 'compiler/**'
8+
- compiler/**
9+
10+
env:
11+
TZ: /usr/share/zoneinfo/America/Los_Angeles
912

1013
jobs:
1114
discover_flow_inline_configs:
@@ -34,8 +37,8 @@ jobs:
3437
- uses: actions/checkout@v4
3538
- uses: actions/setup-node@v4
3639
with:
37-
node-version: 18.x
38-
cache: "yarn"
40+
node-version: 18.20.1
41+
cache: yarn
3942
cache-dependency-path: yarn.lock
4043
- name: Restore cached node_modules
4144
uses: actions/cache@v4

.github/workflows/runtime_fuzz_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
inputs:
1010
prerelease_commit_sha:
1111
required: false
12+
13+
env:
14+
TZ: /usr/share/zoneinfo/America/Los_Angeles
15+
1216
jobs:
1317
test_fuzz:
1418
if: inputs.prerelease_commit_sha == ''

.github/workflows/runtime_test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55
branches: [main]
66
pull_request:
77
paths-ignore:
8-
- 'compiler/**'
8+
- compiler/**
9+
10+
env:
11+
TZ: /usr/share/zoneinfo/America/Los_Angeles
912

1013
jobs:
1114
test:
@@ -44,8 +47,8 @@ jobs:
4447
- uses: actions/checkout@v4
4548
- uses: actions/setup-node@v4
4649
with:
47-
node-version: 18.x
48-
cache: "yarn"
50+
node-version: 18.20.1
51+
cache: yarn
4952
cache-dependency-path: yarn.lock
5053
- name: Restore cached node_modules
5154
uses: actions/cache@v4

0 commit comments

Comments
 (0)