Skip to content

Commit

Permalink
feature: use yarn starship instead of starship directly (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 authored Jun 13, 2024
1 parent 854f41c commit dae792c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ runs:
using: composite
steps:

- name: Create yarn.lock file if not exists
- name: Create yarn.lock and package.json file if not exists
run: |
if [ ! -f $GITHUB_WORKSPACE/yarn.lock ]; then
echo 'Creating temporary yarn.lock file'
echo '' > $GITHUB_WORKSPACE/yarn.lock
fi
if [ ! -f $GITHUB_WORKSPACE/package.json ]; then
echo 'Creating temporary package.json file'
echo '{}' > $GITHUB_WORKSPACE/package.json
fi
shell: bash

- name: Setup Node.js
Expand Down Expand Up @@ -124,13 +128,13 @@ runs:
- name: Setup starshipjs client
if: inputs.cli-version != '0.0.0' # Skip if cli-version is 0.0.0, expected to be used for local testing
run: |
yarn global add @starship-ci/cli@${{ inputs.cli-version }}
starship --version
yarn add @starship-ci/cli@${{ inputs.cli-version }}
yarn starship --version
shell: bash

- name: Setup starship helm repo
run: |
starship setup \
yarn starship setup \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile $GITHUB_WORKSPACE/${{ inputs.name }}-values.yaml \
Expand All @@ -144,7 +148,7 @@ runs:
run: |
helm delete ${{ inputs.name }} --debug --namespace ${{ steps.set-namespace.outputs.namespace }} --wait || true
sleep 5
starship start \
yarn starship start \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile $GITHUB_WORKSPACE/${{ inputs.name }}-values.yaml \
Expand Down Expand Up @@ -175,7 +179,7 @@ runs:
helm delete ${{ inputs.name }} --debug --namespace ${{ steps.set-namespace.outputs.namespace }} --wait || true
sleep 5
kubectl get pods --namespace ${{ steps.set-namespace.outputs.namespace }}
starship start \
yarn starship start \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile $GITHUB_WORKSPACE/${{ inputs.name }}-values.yaml \
Expand Down

0 comments on commit dae792c

Please sign in to comment.