Skip to content
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

Github Actions new changes #15

Merged
merged 30 commits into from
Jun 7, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
94ce0db
use different relative path for storing action artifacts
Abhishek-kumar09 Jun 5, 2023
a0cf59c
use different relative path for storing action artifacts
Abhishek-kumar09 Jun 5, 2023
4bd5f47
add logic to merge the manifest files together to a single unit
Abhishek-kumar09 Jun 5, 2023
ac84775
Add test logic
Abhishek-kumar09 Jun 5, 2023
d0cb5bd
dynamic Upload Application
Abhishek-kumar09 Jun 6, 2023
4fe52c6
Write uploadApplication Endpoint
Abhishek-kumar09 Jun 6, 2023
cc230f4
put the manifest yaml in place
Abhishek-kumar09 Jun 6, 2023
1e7ccf8
correct the references for fs
Abhishek-kumar09 Jun 6, 2023
4fd8523
push the menifest file pathfile
Abhishek-kumar09 Jun 6, 2023
01209f5
push the menifest file pathfile
Abhishek-kumar09 Jun 6, 2023
156dd37
comment for debug
Abhishek-kumar09 Jun 6, 2023
484184a
fix typo
Abhishek-kumar09 Jun 6, 2023
72cc2b3
enable verbose loggin
Abhishek-kumar09 Jun 6, 2023
01a94c2
enable verbose loggin
Abhishek-kumar09 Jun 6, 2023
1b131d2
fix curl error
Abhishek-kumar09 Jun 6, 2023
01fd0f5
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
ff33036
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
065b1ed
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
98f906c
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
6038495
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
8978eea
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
1231e25
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
4e9b373
debug: check appfile
Abhishek-kumar09 Jun 6, 2023
74c82e7
check application ID assignment
Abhishek-kumar09 Jun 6, 2023
264771c
uncomment the remainging code
Abhishek-kumar09 Jun 6, 2023
a4331f3
fix broken
Abhishek-kumar09 Jun 6, 2023
16a5ebb
complete the workflow
Abhishek-kumar09 Jun 6, 2023
1a2a090
relace quotes in string
Abhishek-kumar09 Jun 7, 2023
75790a6
wait for all the svgs to load
Abhishek-kumar09 Jun 7, 2023
b1f7575
reduce viewport
Abhishek-kumar09 Jun 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use different relative path for storing action artifacts
Signed-off-by: Abhishek kr <[email protected]>
  • Loading branch information
Abhishek-kumar09 committed Jun 5, 2023
commit 94ce0db837b8f80deee8265ca3f5d4c80ac0a583
2 changes: 2 additions & 0 deletions .github/workflows/pr-target-test.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,8 @@ jobs:
export pull_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
echo "PULL_NO=$pull_number" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
path: action
- id: test_result
uses: ./
with:
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -16,6 +16,8 @@ jobs:
export pull_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
echo "PULL_NO=$pull_number" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
path: action
- id: test_result
uses: ./
with:
16 changes: 8 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
@@ -53,13 +53,13 @@ runs:
- run: echo ${{ steps.ping-playground.outputs.IS_PLAYGROUND_RUNNING }}
shell: bash
- run:
working-directory: cypress-action/
working-directory: action/cypress-action/
if: ${{ !steps.ping-playground.outputs.IS_PLAYGROUND_RUNNING }}
shell: bash
- name: Cypress run
uses: cypress-io/github-action@v4
with:
working-directory: cypress-action
working-directory: action/cypress-action
spec: cypress/e2e/e2e/**/*
browser: chrome
# record: true
@@ -71,25 +71,25 @@ runs:
# CYPRESS_RECORD_KEY: ${{ inputs.cypressRecordKey }}
- run: ls
shell: bash
- run: tree cypress-action/cypress/ -L 2me
- run: tree action/cypress-action/cypress/ -L 2me
shell: bash
- name: Upload Cypress artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: cypress-ss
path: cypress-action/cypress/videos
path: action/cypress-action/cypress/videos
- name: Upload Cypress artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: cypress-ss
path: cypress-action/cypress/screenshots
path: action/cypress-action/cypress/screenshots
- run: echo "SCREENSHOT_NAME=$(ls)" >> $GITHUB_ENV # Assumption: There is only one screenshot in the download directory
working-directory: cypress-action/cypress/downloads
working-directory: action/cypress-action/cypress/downloads
shell: bash
- run: mv "$SCREENSHOT_NAME" screenshot.png
working-directory: cypress-action/cypress/downloads
working-directory: action/cypress-action/cypress/downloads
shell: bash
- run: |
export request=$(curl --fail -d "$(base64 -i screenshot.png)" 'https://meshery.layer5.io/api/integration/github/meta/artifacts' \
@@ -98,7 +98,7 @@ runs:
# TODO: fail in case of not 2XX or 3XX
echo "RESOURCE_URL=$request" >> $GITHUB_ENV
id: cloud-response
working-directory: cypress-action/cypress/downloads
working-directory: action/cypress-action/cypress/downloads
shell: bash
- name: Get Organization and Repository
if: always()