s3-sqs input: log a lambda event summary in case of errors #1075
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@v4 | |
- run: make license | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make docker-lint | |
coverage: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
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@v4 | |
with: | |
name: test-results | |
path: | | |
**/elastic-serverless-forwarder-junit.xml | |
**/coverage.xml |