diff --git a/README.md b/README.md index 93871de..acbdfdf 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ This repository contains **29 reusable GitHub Actions** for CI/CD automation. | ๐Ÿ“ | [`go-lint`][go-lint] | Linting | Run golangci-lint with advanced configuration, caching, and ... | Caching, Token auth, Outputs | | ๐Ÿ“ | [`language-version-detect`][language-version-detect] | Setup | DEPRECATED: This action is deprecated. Inline version detect... | Auto-detection, Token auth, Outputs | | ๐Ÿ–ฅ๏ธ | [`node-setup`][node-setup] | Setup | Sets up Node.js environment with version detection and packa... | Auto-detection, Token auth, Outputs | -| ๐Ÿ“ฆ | [`npm-publish`][npm-publish] | Publishing | Publishes the package to the NPM registry with configurable ... | Token auth, Outputs | -| ๐Ÿ–ฅ๏ธ | [`php-composer`][php-composer] | Testing | Runs Composer install on a repository with advanced caching ... | Auto-detection, Token auth, Outputs | +| ๐Ÿ“ฆ | [`npm-publish`][npm-publish] | Publishing | Publishes the package to the NPM registry with configurable ... | Caching, Token auth, Outputs | +| ๐Ÿ–ฅ๏ธ | [`php-composer`][php-composer] | Testing | Runs Composer install on a repository with advanced caching ... | Caching, Auto-detection, Token auth, Outputs | | ๐Ÿ’ป | [`php-laravel-phpunit`][php-laravel-phpunit] | Testing | Setup PHP, install dependencies, generate key, create databa... | Auto-detection, Token auth, Outputs | | โœ… | [`php-tests`][php-tests] | Testing | Run PHPUnit tests on the repository | Token auth, Outputs | | โœ… | [`pr-lint`][pr-lint] | Linting | Runs MegaLinter against pull requests | Caching, Auto-detection, Token auth, Outputs | @@ -90,11 +90,11 @@ This repository contains **29 reusable GitHub Actions** for CI/CD automation. #### ๐Ÿงช Testing (3 actions) -| Action | Description | Languages | Features | -|:------------------------------------------------|:------------------------------------------------------|:-------------|:------------------------------------| -| ๐Ÿ–ฅ๏ธ [`php-composer`][php-composer] | Runs Composer install on a repository with advance... | PHP | Auto-detection, Token auth, Outputs | -| ๐Ÿ’ป [`php-laravel-phpunit`][php-laravel-phpunit] | Setup PHP, install dependencies, generate key, cre... | PHP, Laravel | Auto-detection, Token auth, Outputs | -| โœ… [`php-tests`][php-tests] | Run PHPUnit tests on the repository | PHP | Token auth, Outputs | +| Action | Description | Languages | Features | +|:------------------------------------------------|:------------------------------------------------------|:-------------|:---------------------------------------------| +| ๐Ÿ–ฅ๏ธ [`php-composer`][php-composer] | Runs Composer install on a repository with advance... | PHP | Caching, Auto-detection, Token auth, Outputs | +| ๐Ÿ’ป [`php-laravel-phpunit`][php-laravel-phpunit] | Setup PHP, install dependencies, generate key, cre... | PHP, Laravel | Auto-detection, Token auth, Outputs | +| โœ… [`php-tests`][php-tests] | Run PHPUnit tests on the repository | PHP | Token auth, Outputs | #### ๐Ÿ—๏ธ Build (3 actions) @@ -110,7 +110,7 @@ This repository contains **29 reusable GitHub Actions** for CI/CD automation. |:--------------------------------------|:------------------------------------------------------|:-------------|:---------------------------------------------| | ๐Ÿ“ฆ [`csharp-publish`][csharp-publish] | Publishes a C# project to GitHub Packages. | C#, .NET | Caching, Auto-detection, Token auth, Outputs | | โ˜๏ธ [`docker-publish`][docker-publish] | Simple wrapper to publish Docker images to GitHub ... | Docker | Token auth, Outputs | -| ๐Ÿ“ฆ [`npm-publish`][npm-publish] | Publishes the package to the NPM registry with con... | Node.js, npm | Token auth, Outputs | +| ๐Ÿ“ฆ [`npm-publish`][npm-publish] | Publishes the package to the NPM registry with con... | Node.js, npm | Caching, Token auth, Outputs | #### ๐Ÿ“ฆ Repository (6 actions) @@ -149,8 +149,8 @@ This repository contains **29 reusable GitHub Actions** for CI/CD automation. | [`go-lint`][go-lint] | โœ… | - | โœ… | โœ… | | [`language-version-detect`][language-version-detect] | - | โœ… | โœ… | โœ… | | [`node-setup`][node-setup] | - | โœ… | โœ… | โœ… | -| [`npm-publish`][npm-publish] | - | - | โœ… | โœ… | -| [`php-composer`][php-composer] | - | โœ… | โœ… | โœ… | +| [`npm-publish`][npm-publish] | โœ… | - | โœ… | โœ… | +| [`php-composer`][php-composer] | โœ… | โœ… | โœ… | โœ… | | [`php-laravel-phpunit`][php-laravel-phpunit] | - | โœ… | โœ… | โœ… | | [`php-tests`][php-tests] | - | - | โœ… | โœ… | | [`pr-lint`][pr-lint] | โœ… | โœ… | โœ… | โœ… | diff --git a/npm-publish/action.yml b/npm-publish/action.yml index 9414d79..70dcf24 100644 --- a/npm-publish/action.yml +++ b/npm-publish/action.yml @@ -106,12 +106,13 @@ runs: - name: Cache Node Dependencies id: cache - uses: ivuorinen/actions/common-cache@0fa9a68f07a1260b321f814202658a6089a43d42 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: - type: 'npm' - paths: 'node_modules' - key-files: 'package-lock.json,yarn.lock,pnpm-lock.yaml,bun.lockb' - key-prefix: 'npm-publish-${{ steps.node-setup.outputs.package-manager }}' + path: node_modules + key: ${{ runner.os }}-npm-publish-${{ steps.node-setup.outputs.package-manager }}-npm-${{ hashFiles('package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb') }} + restore-keys: | + ${{ runner.os }}-npm-publish-${{ steps.node-setup.outputs.package-manager }}-npm- + ${{ runner.os }}-npm-publish-${{ steps.node-setup.outputs.package-manager }}- - name: Install Dependencies if: steps.cache.outputs.cache-hit != 'true' diff --git a/php-composer/action.yml b/php-composer/action.yml index 1854793..ad6c023 100644 --- a/php-composer/action.yml +++ b/php-composer/action.yml @@ -176,13 +176,15 @@ runs: - name: Cache Composer packages id: composer-cache - uses: ivuorinen/actions/common-cache@0fa9a68f07a1260b321f814202658a6089a43d42 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: - type: 'composer' - paths: vendor,~/.composer/cache${{ inputs.cache-directories != "" && format(",{0}", inputs.cache-directories) || "" }} - key-prefix: 'php-${{ inputs.php }}-composer-${{ inputs.composer-version }}' - key-files: 'composer.lock,composer.json' + path: | + vendor + ~/.composer/cache + ${{ inputs.cache-directories }} + key: ${{ runner.os }}-php-${{ inputs.php }}-composer-${{ inputs.composer-version }}-composer-${{ hashFiles('composer.lock', 'composer.json') }} restore-keys: | + ${{ runner.os }}-php-${{ inputs.php }}-composer-${{ inputs.composer-version }}-composer- ${{ runner.os }}-php-${{ inputs.php }}-composer-${{ inputs.composer-version }}- ${{ runner.os }}-php-${{ inputs.php }}-composer- ${{ runner.os }}-php-${{ inputs.php }}-