|
1 |
| -name: Quality Checks |
2 |
| -on: |
3 |
| - pull_request: |
4 |
| - branches: |
5 |
| - - main |
6 |
| - |
7 |
| -env: |
8 |
| - LT_USERNAME: ${{ secrets.LT_USERNAME }} |
9 |
| - LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} |
10 |
| - GRID_HOST: ${{ secrets.GRID_HOST }} |
11 |
| - |
12 |
| -jobs: |
13 |
| - SmartUI-Gihub-Action: |
14 |
| - name: Execute SmartUI Test with Github App Integration |
15 |
| - runs-on: ubuntu-latest |
16 |
| - steps: |
17 |
| - - uses: actions/checkout@v1 |
18 |
| - |
19 |
| - - name: Create commit status |
20 |
| - run: | |
21 |
| - API_HOST=https://api.github.com |
22 |
| - # Check out the PR branch |
23 |
| - git checkout $GITHUB_HEAD_REF |
24 |
| - # Get the commit ID of the last commit |
25 |
| - COMMIT_ID=$(git rev-parse HEAD) |
26 |
| - echo "Commit ID of PR: $COMMIT_ID" |
27 |
| - GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID |
28 |
| - echo "GITHUB_URL: $GITHUB_URL" |
29 |
| - echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV |
30 |
| -
|
31 |
| - - name: Install Dependencies |
32 |
| - run: npm install |
33 |
| - |
34 |
| - - name: Execute Test |
35 |
| - run: npm test |
36 |
| - |
37 |
| - - name: Execute Multiple tests |
38 |
| - run: npm run multiple |
| 1 | +name: Quality Checks |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + |
| 7 | +env: |
| 8 | + LT_USERNAME: ${{ secrets.LT_USERNAME }} |
| 9 | + LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} |
| 10 | + GRID_HOST: ${{ secrets.GRID_HOST }} |
| 11 | + |
| 12 | +jobs: |
| 13 | + SmartUI-Gihub-Action: |
| 14 | + name: Execute SmartUI Test with Github App Integration |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v1 |
| 18 | + |
| 19 | + - name: Create commit status |
| 20 | + run: | |
| 21 | + API_HOST=https://api.github.com |
| 22 | + # Check out the PR branch |
| 23 | + git checkout $GITHUB_HEAD_REF |
| 24 | + # Get the commit ID of the last commit |
| 25 | + COMMIT_ID=$(git rev-parse HEAD) |
| 26 | + echo "Commit ID of PR: $COMMIT_ID" |
| 27 | + GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID |
| 28 | + echo "GITHUB_URL: $GITHUB_URL" |
| 29 | + echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV |
| 30 | +
|
| 31 | + - name: Install Dependencies & Execute tests |
| 32 | + run: | |
| 33 | + cd hooks |
| 34 | + npm install |
| 35 | + npm test |
0 commit comments