-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[patch] dev experience / gha updates #1080
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build and Push | ||
on: push | ||
|
||
env: | ||
NODE_VERSION: 18 | ||
JAVA_VERSION: 11 | ||
JAVA_DISTRIBUTION: 'adopt' | ||
|
||
jobs: | ||
build-push: | ||
name: run tests, build and push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'npm' | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
|
||
- name: Install dependencies | ||
run: npm run ci | ||
|
||
- name: Lint tests | ||
run: npm run lint | ||
|
||
- name: Run tests | ||
run: npm run test-report | ||
|
||
- name: Test Report | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this strange stuff came from the gatekeep.yml |
||
uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: Unit Tests | ||
fail-on-error: true, | ||
path: test-results.json # Path to test results | ||
reporter: mocha-json # Format of test results | ||
|
||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
id: test-results | ||
if: always() | ||
with: | ||
files: "test-results.json" | ||
|
||
- name: Run coverage | ||
run: npm run cover | ||
|
||
- name: upload codecov | ||
uses: codecov/codecov-action@v4 | ||
|
||
- name: Check whether we will be able to make the release | ||
run: make release | ||
|
||
- name: AWS, credentials setup | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: us-west-1 | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Deploy updated builds to staging | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
id: build | ||
run: | | ||
./deployment/deploy-qa.sh |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,6 @@ dev | |
test-results.json | ||
.idea/ | ||
.direnv/ | ||
dev.config | ||
dev.html | ||
example.html | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3 generated files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do we use java?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im not sure why we are setting up java, i was worried about removing it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill leave for now, but take an action item to look into it