Merge pull request #179 from aws-beam/fix-cloudfront-keyvalue-store #400
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: Build | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest] | |
| otp-version: [26, 27, 28] | |
| runs-on: ${{ matrix.platform }} | |
| container: | |
| image: erlang:${{ matrix.otp-version }} | |
| services: | |
| ddb: | |
| image: amazon/dynamodb-local:1.21.0 | |
| ports: | |
| - 8000:8000 | |
| s3mock: | |
| image: adobe/s3mock:4.6.0 | |
| ports: | |
| - 9090:9090 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Compile | |
| run: rebar3 compile | |
| - name: Run EUnit Tests | |
| run: rebar3 eunit | |
| - name: Run Common Tests | |
| run: rebar3 ct | |
| env: | |
| DYNAMODB_HOST: ddb | |
| S3MOCK_HOST: s3mock | |
| - name: Check app calls | |
| run: rebar3 check_app_calls | |
| - name: Produce Documentation | |
| run: rebar3 ex_doc | |
| - name: Publish Documentation | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: edoc OTP${{ matrix.otp-version }} | |
| path: doc | |
| - name: Upload Common Test result | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Common Test OTP${{ matrix.otp-version }} | |
| path: _build/test/logs/** | |
| retention-days: 3 |