|
1 | | -# name: Unit Test |
| 1 | +name: Unit Test |
2 | 2 |
|
3 | | -# on: |
4 | | -# pull_request: |
5 | | -# types: [assigned, opened, synchronize, reopened] |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: [assigned, opened, synchronize, reopened] |
6 | 6 |
|
7 | | -# jobs: |
8 | | -# unit-test: |
9 | | -# permissions: write-all |
10 | | -# runs-on: ubuntu-latest |
11 | | -# steps: |
12 | | -# - uses: actions/checkout@v1 |
13 | | -# - name: Setup GitHub Action |
14 | | -# uses: actions/setup-node@v1 |
15 | | -# with: |
16 | | -# node-version: 14.18 |
17 | | -# - name: Install dependencies |
18 | | -# run: npm install |
19 | | -# - name: Test |
20 | | -# run: npm run unit_test:ci |
21 | | -# env: |
22 | | -# FYLE_CLIENT_ID: "lolo" |
23 | | -# CALLBACK_URI: "http://lolo.fyle.tech/callback" |
24 | | -# API_URL: "http://lolo.fyle.tech" |
25 | | -# FYLE_APP_URL: "http://lolo.fyle.tech" |
26 | | -# SI_API_URL: "http://lolo.fyle.tech" |
27 | | -# SAGE300_API_URL: "http://lolo.fyle.tech" |
28 | | -# - name: Unit Test Coverage |
29 | | -# uses: fylein/comment-test-coverage@master |
30 | | -# with: |
31 | | -# token: ${{ secrets.GITHUB_TOKEN }} |
32 | | -# path: coverage/coverage-summary.json |
33 | | -# title: Unit Test Coverage |
34 | | -# - name: Upload coverage to Codecov |
35 | | -# uses: codecov/codecov-action@v3 |
| 7 | +jobs: |
| 8 | + unit-test: |
| 9 | + permissions: write-all |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v1 |
| 13 | + - name: Setup GitHub Action |
| 14 | + uses: actions/setup-node@v1 |
| 15 | + with: |
| 16 | + node-version: 22.2.0 |
| 17 | + - name: Install dependencies |
| 18 | + run: npm install |
| 19 | + - name: Test |
| 20 | + run: npm run unit_test:ci |
| 21 | + env: |
| 22 | + GH_UNIT_TEST_ENV: true |
| 23 | + BRAND_NAME: "Fyle" |
| 24 | + WEBPAGE_TITLE: "Fyle Integrations Settings" |
| 25 | + BRAND_ID: "fyle" |
| 26 | + SUPPORT_EMAIL: "staging-1-in" |
| 27 | + HELP_ARTICLE_DOMAIN: "[email protected]" |
| 28 | + ENV_ID: "https://help.manageexpenses.capitalone-fylehq.com" |
| 29 | + FYLE_CLIENT_ID: "lolo" |
| 30 | + CALLBACK_URI: "http://lolo.fyle.tech/callback" |
| 31 | + CLUSTER_DOMAIN_API_URL: "http://lolo.fyle.tech" |
| 32 | + FYLE_APP_URL: "http://lolo.fyle.tech" |
| 33 | + SI_API_URL: "http://lolo.fyle.tech" |
| 34 | + SAGE300_API_URL: "http://lolo.fyle.tech" |
| 35 | + - name: Unit Test Coverage |
| 36 | + uses: fylein/comment-test-coverage@master |
| 37 | + with: |
| 38 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 39 | + path: coverage/coverage-summary.json |
| 40 | + title: Unit Test Coverage |
| 41 | + - name: Upload coverage to Codecov |
| 42 | + uses: codecov/codecov-action@v3 |
0 commit comments