Skip to content

Commit

Permalink
gh actions cache improvements (#3634)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl authored Feb 2, 2024
1 parent 63fdb0b commit 2cf5164
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 60 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/cleanup.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
prepare:
uses: ./.github/workflows/prepare.yml
with:
buildcache_key: compat_buildcache
buildcache_key: compat_buildcache-${{ github.ref }}
secrets: inherit

compatibility:
Expand All @@ -28,6 +28,6 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: compat_buildcache
key: compat_buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: bash ./scripts/testCompatibility.sh --tag latest
4 changes: 2 additions & 2 deletions .github/workflows/container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
uses: ./.github/workflows/prepare.yml
secrets: inherit
with:
buildcache_key: buildcache-container
buildcache_key: buildcache-container-${{ github.ref }}

publish:
runs-on: ubuntu-latest
Expand All @@ -24,7 +24,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache-container
key: buildcache-container-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_LUI_AUTH_TOKEN" > ~/.npmrc
- run: ls ./container/public
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/luigi-client-support-ui5-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
uses: ./.github/workflows/prepare.yml
secrets: inherit
with:
buildcache_key: buildcache-luigi-client-support-ui5-release
buildcache_key: buildcache-luigi-client-support-ui5-release-${{ github.ref }}

publish:
runs-on: ubuntu-latest
Expand All @@ -24,7 +24,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache-luigi-client-support-ui5-release
key: buildcache-luigi-client-support-ui5-release-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_LUI_AUTH_TOKEN" > ~/.npmrc
- run: ls ./client-frameworks-support/client-support-ui5/dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache
key: whitesource_cache
key: whitesource_cache-${{ github.ref }}
- run: sudo apt-get install build-essential python2 libgconf-2-4 libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- run: npm --prefix ./client ci ./client
- run: npm --prefix ./core ci ./core
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: ./.github/workflows/prepare.yml
secrets: inherit
with:
buildcache_key: buildcache-nightly
buildcache_key: buildcache-nightly-${{ github.ref }}

publish:
runs-on: ubuntu-latest
Expand All @@ -33,7 +33,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache-nightly
key: buildcache-nightly-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_LUI_AUTH_TOKEN" > ~/.npmrc
- run: cd ./scripts && npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: ./.github/workflows/prepare.yml
secrets: inherit
with:
buildcache_key: buildcache-rc
buildcache_key: buildcache-rc-${{ github.ref }}

publish:
runs-on: ubuntu-latest
Expand All @@ -32,7 +32,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache-rc
key: buildcache-rc-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_LUI_AUTH_TOKEN" > ~/.npmrc
- run: cd ./scripts && npm ci
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: ./.github/workflows/prepare.yml
secrets: inherit
with:
buildcache_key: buildcache
buildcache_key: buildcache-${{ github.ref }}

unit:
name: Unit Tests
Expand All @@ -29,7 +29,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache
key: buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: npm test --prefix core || exit 1

Expand All @@ -47,7 +47,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache
key: buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: npm i -g cypress
- run: npm i -g live-server
Expand All @@ -67,7 +67,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache
key: buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: npm test --prefix container || exit 1

Expand All @@ -86,7 +86,7 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache
key: buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: bash ./container/run-container-e2e.sh || exit 1

Expand All @@ -104,22 +104,14 @@ jobs:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache
key: buildcache-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: sudo apt-get install libgconf-2-4 libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- run: npm install --prefix test/e2e-test-application @babel/plugin-proposal-class-properties
- run: ls test
- run: bash ./test/e2e-js.sh || exit 1
- run: bash ./test/e2e-angular.sh || exit 1

cleanup:
needs: [e2e, container_unit_tests, container_e2e_tests, mock_engine, unit]
uses: ./.github/workflows/cleanup.yml
secrets: inherit
with:
buildcache_key: buildcache


docu_check:
name: Check Documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2cf5164

Please sign in to comment.