Add SAM Template outputs for Lambda function ARN and IAM Role ARN #564
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
license: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: make license | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: make docker-lint | |
coverage: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' # As defined in tests/scripts/docker/run_tests.sh | |
cache: 'pip' # caching pip dependencies | |
- run: make all-requirements | |
- run: make coverage | |
env: | |
# See https://github.com/elastic/elastic-serverless-forwarder/pull/280#issuecomment-1461554126 | |
AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID | |
AWS_SECRET_ACCESS_KEY: AWS_SECRET_ACCESS_KEY | |
PYTEST_JUNIT: "--junitxml=./elastic-serverless-forwarder-junit.xml" | |
- name: Store test results | |
if: success() || failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
path: | | |
**/elastic-serverless-forwarder-junit.xml | |
**/coverage.xml |