Skip to content

Commit

Permalink
chore: update pipeline to build app
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Nov 26, 2024
1 parent b04b925 commit 8fe4158
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ jobs:
procommit-deploy:
runs-on: buildjet-8vcpu-ubuntu-2204

outputs:
unit_tests_report: ${{ env.UNIT_TEST_REPORT_FILE }}
build_artifact: ${{ env.BUILD_ARTIFACT }}

env:
DEPLOYMENT_RECOVERY_TIMEOUT_SECONDS: 150
AWS_APPLICATION_NAME: Webapp
AWS_BUILD_ZIP_PATH: server/dist/s3/ebs.zip
BUILD_DIR: server/dist/s3/
BUILD_ARTIFACT: ebs.zip
COMMIT_URL: ${{github.event.head_commit.url}}
COMMITTER: ${{github.event.head_commit.committer.name}}
CHANGELOG_FILE: './changelog.md'
UNIT_TEST_REPORT_FILE: './unit-tests.log'

steps:
- name: Checkout
Expand All @@ -31,6 +40,29 @@ jobs:
- name: Install JS dependencies
run: yarn --immutable

- name: Update configuration
run: yarn configure

# - name: Test
# run: |
# set -o pipefail
# yarn test --detectOpenHandles=false 2>&1 | tee ${{ env.UNIT_TEST_REPORT_FILE }}
# echo -e "COMMIT SHA = ${{ github.sha }}" >> ${{env.UNIT_TEST_REPORT_FILE}}
# echo -e "TEST RUN DATE = $(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> ${{env.UNIT_TEST_REPORT_FILE}}

# - uses: actions/upload-artifact@v4
# with:
# name: 'unit-tests-report'
# path: ${{env.UNIT_TEST_REPORT_FILE}}

- name: Build
run: yarn build:prod

- uses: actions/upload-artifact@v4
with:
name: 'build-artifact'
path: '${{env.BUILD_DIR}}${{env.BUILD_ARTIFACT}}'

- name: Fetch PR details
id: pr_details
uses: octokit/[email protected]
Expand Down

0 comments on commit 8fe4158

Please sign in to comment.