Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit ddc5557

Browse files
committed
Added Github workflow to test action
1 parent cf98ee0 commit ddc5557

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
debug_enabled:
7+
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
8+
required: false
9+
default: false
10+
11+
env:
12+
BUILD_CACHE_KEY: ${{ github.sha }}
13+
CACHED_BUILD_PATHS: |
14+
${{ github.workspace }}/dist-serverless
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
name: "Test Lambda Layer Build"
20+
steps:
21+
- name: Setup build cache
22+
uses: actions/cache@v2
23+
id: build_cache
24+
with:
25+
path: ${{ env.CACHED_BUILD_PATHS }}
26+
key: ${{ env.BUILD_CACHE_KEY }}
27+
- name: Create dummy Lambda Layer
28+
run: |
29+
echo "Creating a dummy Lambda layer in the /dist-serverless directory..."
30+
mkdir -p dist-serverless
31+
touch dist-serverless/PUT_LAYER_CODE_HERE
32+
echo "Done creating a dummy Lambda layer in the /dist-serverless directory."
33+
- uses: getsentry/action-build-aws-lambda-extension@v1
34+
with:
35+
artifact_name: ${{ github.sha }}
36+
zip_file_name: test-aws-lambda-layer.zip
37+
build_cache_paths: ${{ env.CACHED_BUILD_PATHS }}
38+
build_cache_key: ${{ env.BUILD_CACHE_KEY }}

0 commit comments

Comments
 (0)