CI check #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quality Checks CI | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
LT_USERNAME: ${{ secrets.LT_USERNAME }} | |
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} | |
GRID_HOST: ${{ secrets.GRID_HOST }} | |
GRID_URL: ${{ secrets.GRID_URL }} | |
jobs: | |
SmartUI-Gihub-Action: | |
name: Execute SmartUI Test with Github App Integration | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Create commit status | |
run: | | |
API_HOST=https://api.github.com | |
OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) | |
REPO=$(echo $GITHUB_REPOSITORY | cut -d'/' -f2) | |
# Check out the PR branch | |
git checkout $GITHUB_HEAD_REF | |
# Get the commit ID of the last commit | |
COMMIT_ID=$(git rev-parse HEAD) | |
echo "Last commit ID of PR: $COMMIT_ID" | |
REF=$GITHUB_SHA | |
echo "Current Commit ID REF : $REF" | |
GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID | |
echo "GITHUB_URL: $GITHUB_URL" | |
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV | |
- name: Install Dependencies | |
run: npm install | |
- name: Execute Test | |
run: npm test |