Skip to content

Commit

Permalink
feat: add pnpm caching to pipelines, update action versions, use new …
Browse files Browse the repository at this point in the history
…treemap library
  • Loading branch information
Jasperhino committed Dec 9, 2024
1 parent a4be77c commit c10e550
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 27 deletions.
52 changes: 40 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,33 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Bump version and push tag 🏷
id: tag
uses: anothrNick/github-tag-action@1.36.0
uses: anothrNick/github-tag-action@1.71.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true

- name: Install pnpm ⚙
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v4
with:
version: 7
version: 8

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install treemaps library 📦
run: |
Expand Down Expand Up @@ -58,27 +72,41 @@ jobs:
steps:
# To use this repository's private action, we must check out the repository
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm ⚙️
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v4
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Node 🟢
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
cache: "pnpm"
cache-dependency-path: frontend/pnpm-lock.yaml

- name: Install treemaps library 📦
run: |
cd frontend
git clone --branch hiviser_deployment https://${{ secrets.SEERENE_TREEMAPS_DEPLOY_USER }}:${{ secrets.SEERENE_TREEMAPS_DEPLOY_TOKEN }}@gitlab.hpi3d.de/seerene/treemaps.git
cd treemaps
git submodule add [email protected]:varg-dev/treemap-renderer.git
cd treemap-renderer
npm install
npm run build-lib
npm run build
- name: Install and Build Pages 🔧
run: |
Expand Down
25 changes: 19 additions & 6 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,30 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm ⚙
uses: pnpm/action-setup@v2.2.2
- name: Install pnpm ⚙
uses: pnpm/action-setup@v4
with:
version: 7
version: 8

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Node 🟢
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
cache: "pnpm"
cache-dependency-path: frontend/pnpm-lock.yaml

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Analytics Treemap Embedding Action 🚀
uses: hpicgs/github-software-analytics-embedding@v0
Expand Down
39 changes: 31 additions & 8 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c10e550

Please sign in to comment.