generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.48 KB
/
github-action-test-lambda.yml
File metadata and controls
42 lines (35 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: GitHub Action test lambda
on:
push:
branches: [ "*" ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Use the current version of the GitHub action (Python) with wild card
uses: ./
with:
suiteFileArray: '["./github-action-test/lambda/suite*.json"]'
dockerImageName: 'public.ecr.aws/lambda/python:3.14'
taskFolder: './github-action-test/lambda/tasks/python'
- name: Clean up __pycache__ between runs to prevent side effects and start in a clean state
run: sudo find $GITHUB_WORKSPACE -type d -name __pycache__ -exec rm -rf {} +
- name: Use the current version of the GitHub action (Python)
uses: ./
with:
suiteFileArray: '["./github-action-test/lambda/suite0.json", "./github-action-test/lambda/suite1.json"]'
dockerImageName: 'public.ecr.aws/lambda/python:3.14'
taskFolder: './github-action-test/lambda/tasks/python'
- name: Clean up __pycache__ between runs to prevent side effects and start in a clean state
run: sudo find $GITHUB_WORKSPACE -type d -name __pycache__ -exec rm -rf {} +
- name: Use the current version of the GitHub action (NodeJS)
uses: ./
with:
suiteFileArray: '["./github-action-test/lambda/suite0.json"]'
dockerImageName: 'public.ecr.aws/lambda/nodejs:22'
taskFolder: './github-action-test/lambda/tasks/nodejs'