Skip to content

Commit

Permalink
update github actions setup from main
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jan 22, 2025
1 parent 848cd73 commit 552c6b1
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Setup Test Environment
description: Composable Action for ensuring speedy test setup

inputs:
## Disables TurboCache
DISABLE_TURBO_CACHE:
description: Whether to disable TurboCache
required: false
default: false
ACTIONS_RUNNER_DEBUG:
description: Whether to enable debug mode
required: false
default: false
## Speeds Up Lint by enabling reuse
restore-lint-caches:
description: Whether to restore lint caches
Expand Down Expand Up @@ -37,7 +46,7 @@ inputs:
jobs:
description: How many Build Jobs to Run
required: false
default: 2
default: 4
ref:
description: Ref to Setup
required: false
Expand All @@ -50,7 +59,7 @@ inputs:
runs:
using: composite
steps:
- uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
Expand All @@ -61,9 +70,17 @@ runs:
with:
bun-version: latest

- name: DEBUG STATUS
shell: bash
run:
echo "DISABLE_TURBO_CACHE = ${{ inputs.DISABLE_TURBO_CACHE }}"
echo "ACTIONS_RUNNER_DEBUG = ${{ inputs.ACTIONS_RUNNER_DEBUG }}"
echo "restore-lint-caches = ${{ inputs.restore-lint-caches }}"
echo "restore-broccoli-cache = ${{ inputs.restore-broccoli-cache }}"

- name: 'Setup local TurboRepo server'
if: ${{ inputs.repo-token }}
uses: felixmosh/turborepo-gh-artifacts@v2
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ inputs.repo-token }}

Expand All @@ -80,6 +97,7 @@ runs:
run: pnpm install --prefer-offline $ADTL_ARGS
env:
ADTL_ARGS: ${{ inputs.adtl-install-args }}
TURBO_FORCE: ${{ inputs.DISABLE_TURBO_CACHE == 'true' }}

- name: Install Dependencies w/o Addon Builds
if: ${{ inputs.install == 'true' && inputs.skip-addon-build == 'true' }}
Expand All @@ -97,7 +115,7 @@ runs:
- name: Restore Broccoli Cache
if: ${{ inputs.restore-broccoli-cache == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.broccoli-cache
Expand All @@ -111,7 +129,7 @@ runs:
- name: Restore Lint Caches
if: ${{ inputs.restore-lint-caches == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.eslintcache
Expand Down

0 comments on commit 552c6b1

Please sign in to comment.