Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fritz hoing Github actions improvements #6120

Merged
merged 20 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
88fff49
ci: make use of github actions
FritzHoing Jun 17, 2024
fcd221e
feat: add changelog entry
FritzHoing Jun 19, 2024
4740c96
Merge branch 'main' into improve-workflow
sneridagh Jun 20, 2024
0236fcd
fix: add mising actions checkout
FritzHoing Jun 20, 2024
7bdb0c6
ci: rename action
FritzHoing Jun 20, 2024
d744c6d
Update packages/volto/news/6108.internal
stevepiercy Jun 20, 2024
671c475
Merge branch 'main' into improve-workflow
stevepiercy Jun 20, 2024
542491d
Merge branch 'main' into improve-workflow
ichim-david Jun 23, 2024
2ffdf2e
fix import and usage of pre_test_setup/action.yml template within acc…
ichim-david Jun 23, 2024
f04c741
Removed uneeded change of pnpm install position and improved name of …
ichim-david Jun 23, 2024
4ee9378
Re-add actions/checkout before testing infrastructure, without it act…
ichim-david Jun 23, 2024
cb97cc9
Added back shell: bash as github actions complains about missing shel…
ichim-david Jun 23, 2024
ac2c186
Re-added shell:bash to install Volto dependencies, actions complain a…
ichim-david Jun 23, 2024
938ec5a
Re-added shell:bash to Enable corepack, actions complain and crash wi…
ichim-david Jun 23, 2024
dcd783d
Merge branch 'main' into FritzHoing-improve-workflow
ichim-david Jun 26, 2024
6a4796d
Merge branch 'main' into FritzHoing-improve-workflow
stevepiercy Jun 26, 2024
161b7b8
Renamed action and name according to pull request feedback
ichim-david Jun 26, 2024
136c9b1
Update .github/actions/node_env_setup/action.yml
sneridagh Jun 26, 2024
a5d2a65
Use Node.js naming
ichim-david Jun 26, 2024
f0f14bf
Merge branch 'main' into FritzHoing-improve-workflow
ichim-david Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/actions/node_env_setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Set up Node.js environment

runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

- name: Enable corepack
shell: bash
run: corepack enable

- 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: Cache Cypress Binary
id: cache-cypress-binary
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: binary-${{ inputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install Volto dependencies
shell: bash
run: pnpm i

- name: Install Cypress if not in cache
if: steps.cache-cypress-binary.outputs.cache-hit != 'true'
shell: bash
working-directory: packages/volto
run: make cypress-install

inputs:
node-version:
description: 'Node.js version'
required: true
Loading
Loading