Skip to content
Merged
Changes from all commits
Commits
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
23 changes: 2 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Extract commit ID and repository information
run: |
COMMIT_ID=$GITHUB_SHA
REPO_INFO=$GITHUB_REPOSITORY
echo "REPO_INFO: $REPO_INFO"
OWNER=$(echo $REPO_INFO | cut -d'/' -f1)
REPO=$(echo $REPO_INFO | cut -d'/' -f2)
echo "Commit ID: $COMMIT_ID"
echo "Repository: $REPO"
echo "Owner: $OWNER"

- name: Create commit status
run: |
API_HOST=https://api.github.com
Expand All @@ -39,19 +28,11 @@ jobs:
echo "Last commit ID of PR: $COMMIT_ID"
REF=$GITHUB_SHA
echo "Current Commit ID REF : $REF"
STATUS_URL=$API_HOST/repos/$OWNER/$REPO/statuses/$COMMIT_ID
STATUS_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
echo "STATUS_URL: $STATUS_URL"
echo "GITHUB_URL=$STATUS_URL" >> $GITHUB_ENV
curl -X POST $STATUS_URL \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"state": "success",
"description": "The build was successful.",
"context": "ci/smartui-github-testing"
}'

- name: Install Dependecies
- name: Install Dependencies
run: npm install

- name: Execute Test
Expand Down