Skip to content

Commit

Permalink
PDA-325 Fix for Lambda (#121)
Browse files Browse the repository at this point in the history
* Added optional folder for go mod

* inputs.GO_MOD_DIRECTORY

* change to directory

* working-directory

* default to .

* hardcode test

* Hardcode flipp accounts to uwser vaults

* move to format

* moved to 0 and 1

* rename coverage and test report if needed

* added lambda build

* build lambda

* Added lambda dir

* helps if I commit

* Reverted actions to main
  • Loading branch information
dcbickfo authored Jul 25, 2023
1 parent d3f8514 commit 973bee1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deploy/lambda/action.yml → deploy/lambda/go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
ENV:
description: Application environment (staging or production)
required: true
LAMBDA_FUNCTION_DIRECTORY:
description: Directory containing the lambda function main.go file
required: false
default: .

runs:
using: 'composite'
Expand All @@ -15,6 +19,10 @@ runs:
run: shopt -s dotglob && rm -rf "${{ github.workspace }}"/*
- name: Restoring workspace from cache
uses: wishabi/github-actions/cache@v0
- name: Building lambda function for deployment
shell: bash
run: |
go build -o ${{ inputs.LAMBDA_FUNCTION_DIRECTORY }}/main ${{ inputs.LAMBDA_FUNCTION_DIRECTORY }}/main.go
- name: Deploying to Lambda
shell: bash
run: |
Expand Down

0 comments on commit 973bee1

Please sign in to comment.