Skip to content

Commit

Permalink
Do not regenerate assets for permissions-* tests (#2501)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivaj05 committed Dec 14, 2022
1 parent 203e019 commit 0c4a73f
Showing 1 changed file with 33 additions and 120 deletions.
153 changes: 33 additions & 120 deletions .github/workflows/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,20 +482,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-1
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-1-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-1-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-1.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand All @@ -512,13 +506,6 @@ jobs:
run: |
make console
- name: Install dependencies
env:
GO111MODULE: on
GOOS: linux
run: |
cd portal-ui; yarn install;
- name: clean-previous-containers-if-any
run: |
docker stop minio || true;
Expand Down Expand Up @@ -585,20 +572,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-2
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-2-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-2-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-2.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -681,20 +662,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-3
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-3-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-3-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-3.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -773,20 +748,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-4
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-4-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-4-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-4.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -858,20 +827,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-5
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-5-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-5-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-5.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -943,20 +906,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-6
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-6-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-6-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-6.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -1028,20 +985,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-7
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-7-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-7-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-7.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -1113,20 +1064,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-8
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-8-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-8-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-8.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -1203,20 +1148,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-9
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-9-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-9-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-9.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand Down Expand Up @@ -1298,20 +1237,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-A
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-A-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-A-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-A.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand All @@ -1328,13 +1261,6 @@ jobs:
run: |
make console
- name: Install dependencies
env:
GO111MODULE: on
GOOS: linux
run: |
cd portal-ui; yarn install;
- name: clean-previous-containers-if-any
run: |
docker stop minio || true;
Expand Down Expand Up @@ -1400,20 +1326,14 @@ jobs:
${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache-permissions-test-part-B
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-permissions-test-part-B-assets-${{ github.run_id }}
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-permissions-test-part-B-assets-
- name: Generate Assets
if: steps.assets-cache-permissions-test-part-B.outputs.cache-hit != 'true'
run: |
echo "There was no hit, hence we generate the assets"
make assets
${{ runner.os }}-assets-
- uses: actions/cache@v3
name: Go Mod Cache
Expand All @@ -1430,13 +1350,6 @@ jobs:
run: |
make console
- name: Install dependencies
env:
GO111MODULE: on
GOOS: linux
run: |
cd portal-ui; yarn install;
- name: clean-previous-containers-if-any
run: |
docker stop minio || true;
Expand Down

0 comments on commit 0c4a73f

Please sign in to comment.