Skip to content

Commit fd8ef0e

Browse files
authored
Fix studio for test env and add dependency #3133 (#3134)
1 parent 0a35e3c commit fd8ef0e

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

.github/workflows/PROD-all-studios-v3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
if: failure()
243243

244244
store-image-tags:
245-
needs: deploy-satellite-studios
245+
needs: [deploy-satellite-studios, deploy-global, deploy-secret]
246246
runs-on: ubuntu-latest
247247
steps:
248248
- name: Checkout internal 🛎️

.github/workflows/TEST-studio.yaml

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
name: TEST - Build & deploy studio for global-test
1+
name: Test - Build & deploy studio v3
22
on:
33
workflow_dispatch:
4-
# push:
5-
# branches:
6-
# - staging
7-
# paths:
8-
# - 'studio/**/*'
9-
# - './FeatureFlags.js'
10-
# - '!./README.md'
11-
# - '!./.env.development.template'
4+
push:
5+
branches:
6+
- staging
7+
paths:
8+
- 'sanityv3/**/*'
9+
- './FeatureFlags.js'
10+
- '!./README.md'
11+
- '!./.env.test.template'
12+
- '!./sanityv3/scripts/**/*'
1213
permissions:
1314
id-token: write
1415
packages: write
@@ -22,32 +23,31 @@ jobs:
2223
uses: actions/checkout@v3
2324
with:
2425
ref: staging
25-
- uses: actions/setup-node@v3
26-
with:
27-
node-version: 18
28-
cache: yarn
29-
cache-dependency-path: 'studio/yarn.lock'
3026
- name: Install pnpm 📦
3127
id: install-pnpm
3228
uses: pnpm/action-setup@v4
3329
with:
3430
version: '8.5.1'
31+
- name: Cache pnpm modules 💾
32+
uses: actions/setup-node@v3
33+
with:
34+
node-version: 18
35+
cache: 'pnpm'
3536
- name: Install dependencies 🔧
3637
id: install-dependencies
3738
run: |
3839
pnpm install
39-
pnpm studio yarn
40+
pnpm sanityv3 install
4041
- name: Run ESLint 🔎
4142
id: lint
4243
run: |
43-
pnpm lint:studio
44-
- uses: act10ns/slack@v2
44+
pnpm lint:sanityv3
45+
- uses: act10ns/slack@v1
4546
with:
4647
status: ${{ job.status }}
4748
steps: ${{ toJson(steps) }}
4849
if: failure()
4950

50-
# Tried moving this to a composite action, but did not work for some reason
5151
update-radix-config:
5252
needs: check-code
5353
runs-on: ubuntu-latest
@@ -72,7 +72,7 @@ jobs:
7272
repository: 'equinor/energyvision-internal'
7373
ref: main
7474
token: ${{ secrets.PADMS_PAT }} # Replace with ssh as per https://stackoverflow.com/questions/60222741/github-actions-and-git-clone-issue
75-
- name: Modify radixconfig tag for TEST on staging branch 🗒️
75+
- name: Modify radixconfig tag for test on staging branch 🗒️
7676
if: github.ref == 'refs/heads/staging'
7777
shell: bash
7878
id: modify-radix
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
environment:
104104
name: test
105-
url: https://studio-global-test-energyvision-test.radix.equinor.com/
105+
url: https://studiov3-global-test-energyvision-test.radix.equinor.com/
106106
strategy:
107107
matrix:
108108
dataset: [global-test]
@@ -112,12 +112,10 @@ jobs:
112112
steps:
113113
- name: Checkout 🛎️
114114
uses: actions/checkout@v3
115-
with:
116-
ref: staging
117115
- id: deploy-satellite
118-
uses: ./.github/workflows/deploy-studios/
116+
uses: ./.github/workflows/deploy-v3/
119117
with:
120-
imageName: ghcr.io/equinor/energyvision/studio-${{ matrix.dataset }}
118+
imageName: ghcr.io/equinor/energyvision/studiov3-${{ matrix.dataset }}
121119
datasetName: ${{ matrix.dataset }}
122120
githubToken: ${{ secrets.GITHUB_TOKEN }}
123121
sanityApiToken: ${{ secrets.SANITY_API_TOKEN }}
@@ -133,7 +131,7 @@ jobs:
133131
screen9accountId: ${{ secrets.SANITY_STUDIO_SCREEN9_ACCOUNT_ID }}
134132
screen9token: ${{ secrets.SANITY_STUDIO_SCREEN9_TOKEN }}
135133
environment: ${{ secrets.ENV }}
136-
- uses: act10ns/slack@v2
134+
- uses: act10ns/slack@v1
137135
with:
138136
status: ${{ job.status }}
139137
steps: ${{ toJson(steps) }}

0 commit comments

Comments
 (0)