Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 30, 2024
1 parent be020ad commit 7b657e9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 80 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Forge CLI
uses: ./forge/actions/install
- name: Setup
uses: ./forge/actions/setup
uses: ./forge/actions/setup
with:
forge_version: local
19 changes: 0 additions & 19 deletions forge/actions/forge/action.yml

This file was deleted.

40 changes: 0 additions & 40 deletions forge/actions/install/action.yml

This file was deleted.

43 changes: 25 additions & 18 deletions forge/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
name: Setup CI
description: Sets up the CI with the configured providers
inputs:
github_token:
description: Github token used to fetch local actions
required: false
default: ${{ github.token }}
earthly_version:
description: The version of Earthly to install
default: latest
forge_version:
description: The version of the forge CLI to install (use 'local' for testing)
default: latest
runs:
using: composite
steps:
- name: Setup workaround for local actions
uses: actions/checkout@v4
- name: Install Earthly
uses: earthly/actions-setup@v1
if: inputs.forge_version == 'local'
with:
repository: input-output-hk/catalyst-forge
ref: ${{ github.action_ref }}
token: ${{ inputs.github_token }}
path: .local-action-cache
sparse-checkout: |
forge/actions/blueprint
- name: Dump blueprint
id: blueprint
uses: ./.local-action-cache/forge/actions/blueprint
version: ${{ inputs.earthly_version }}
- name: Cache Forge CLI binary
if: inputs.forge_version == 'local'
id: cache-forge
uses: actions/cache@v3
with:
path: .
- name: Show
path: /usr/local/bin/forge
key: ${{ runner.os }}-forge-${{ hashFiles('forge/cli/**') }}
restore-keys: |
${{ runner.os }}-forge-
- name: Build Forge CLI
if: steps.cache-forge.outputs.cache-hit != 'true' && inputs.forge_version == 'local'
shell: bash
run: echo '${{ steps.blueprint.outputs.json }}'
run: |
earthly --artifact ./forge/cli+build/forge /usr/local/bin/forge
- name: Check version
shell: bash
run: forge version

0 comments on commit 7b657e9

Please sign in to comment.