Skip to content

feat: precommit pipeline for QA [WPB-11042] #1

feat: precommit pipeline for QA [WPB-11042]

feat: precommit pipeline for QA [WPB-11042] #1

Workflow file for this run

name: precommit
on:
pull_request:
# we want to run the CI on every PR targetting those branches
branches: [dev]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: false
jobs:
production-deploy:
if: github.event_name == 'pull_request' && github.event.action == 'opened' && github.actor != 'dependabot[bot]' && github.event.pull_request.additions > 100
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.x
cache: 'yarn'
- name: Install JS dependencies
run: yarn --immutable
- name: Deploy to precommit environment
uses: einaregilsson/beanstalk-deploy@v22
with:
application_name: ${{env.AWS_APPLICATION_NAME}}
aws_access_key: ${{secrets.WEBTEAM_AWS_ACCESS_KEY_ID}}
aws_secret_key: ${{secrets.WEBTEAM_AWS_SECRET_ACCESS_KEY}}
deployment_package: ${{env.AWS_BUILD_ZIP_PATH}}
environment_name: wire-webapp-precommit
region: eu-central-1
use_existing_version_if_available: true
version_description: ${{github.sha}}
version_label: ${{github.run_id}}
wait_for_deployment: false
wait_for_environment_recovery: ${{env.DEPLOYMENT_RECOVERY_TIMEOUT_SECONDS}}