Lambda Integration Tests #74
This file contains hidden or 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: Lambda Integration Tests | |
| on: | |
| schedule: | |
| - cron: '0 15 * * *' # Daily at 15:00 UTC | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| contents: read | |
| jobs: | |
| lambda-integration-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: '1.25' | |
| - name: Set up Node 22 | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: 22 | |
| - name: Cache Node modules | |
| id: cache-node-modules | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: "**/node_modules" | |
| key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install Serverless Framework | |
| run: sudo yarn global add serverless@^3.38.0 --prefix /usr/local | |
| - name: Install dependencies | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| working-directory: contrib/aws/datadog-lambda-go/test/integration_tests/ | |
| run: yarn install | |
| - name: Run Lambda integration tests | |
| env: | |
| BUILD_LAYERS: true | |
| DD_API_KEY: ${{ secrets.DD_API_KEY }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| working-directory: contrib/aws/datadog-lambda-go/test/integration_tests/ | |
| run: ./run_integration_tests.sh |