SD-1698 removed the limit query parameter across all eventTypes excep… #109
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: Deploy to AWS | |
on: | |
push: | |
branches: ["dev"] | |
env: | |
AWS_REGION: "eu-north-1" | |
NG_CLI_ANALYTICS: "ci" | |
AWS_ENVIRONMENT: "dev" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Print commit sha | |
shell: bash | |
env: | |
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
run: | | |
echo "sha: $COMMIT_SHA" | |
- name: Set up Java JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- name: Set up Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'npm' | |
cache-dependency-path: webui/package-lock.json | |
- name: Build Conformance-Gateway | |
run: | | |
./mvnw package -B -V -DskipTests | |
# No need to run tests, as they are already run in the PR workflow | |
- name: Build Web UI | |
run: | | |
cd webui | |
echo Install AWS CDK | |
npm install -g aws-cdk | |
echo Install dependencies | |
npm install | |
echo Build Web UI | |
npm run build -- --configuration=${{ env.AWS_ENVIRONMENT }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ env.AWS_REGION }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Diff Conformance-Gateway Stack of ${{ env.AWS_ENVIRONMENT }} | |
run: | | |
cd cdk/ | |
cdk diff ${{ env.AWS_ENVIRONMENT }}ConformanceStack | |
- name: Deploy Conformance-Gateway Stack to ${{ env.AWS_ENVIRONMENT }} | |
run: | | |
cd cdk/ | |
cdk deploy ${{ env.AWS_ENVIRONMENT }}ConformanceStack | |
- name: Verify a scenario in AWS Dev environment | |
env: | |
TEST_LOGIN_EMAIL: ${{ secrets.AWS_DEV_LOGIN_EMAIL }} # User account details to log in the Web UI. | |
TEST_LOGIN_PASSWORD: ${{ secrets.AWS_DEV_LOGIN_PASSWORD }} | |
TEST_BASE_URL: ${{ secrets.AWS_DEV_WEB_URL }} | |
run: | | |
./mvnw -B test -Pintegration |