|
1 | | -name: Test |
| 1 | +name: Test App |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | merge_group: |
|
42 | 42 | - name: Type checks |
43 | 43 | run: npm run type-check |
44 | 44 |
|
45 | | - - name: Test Insomnia |
46 | | - run: npm test -w packages/insomnia |
47 | | - |
48 | | - - name: Test Inso |
49 | | - run: npm test -w packages/insomnia-inso |
50 | | - |
51 | | - - name: Test Insomnia Testing |
52 | | - run: npm test -w packages/insomnia-testing |
| 45 | + - name: Unit Tests |
| 46 | + run: npm test |
53 | 47 |
|
54 | 48 | - name: Build app for smoke tests |
55 | 49 | run: NODE_OPTIONS='--max_old_space_size=6144' npm run app-build |
|
64 | 58 | if: ${{ startsWith(github.head_ref, 'release/') }} |
65 | 59 | run: npm run test:build -w packages/insomnia-smoke-test -- --project=Default |
66 | 60 |
|
67 | | - - name: Set Inso CLI variables |
68 | | - id: inso-variables |
69 | | - shell: bash |
70 | | - run: | |
71 | | - INSO_VERSION="$(jq .version packages/insomnia-inso/package.json -rj)-run.${{ github.run_number }}" |
72 | | - PKG_NAME="inso-ubuntu-latest-$INSO_VERSION" |
73 | | - echo "pkg-name=$PKG_NAME" >> $GITHUB_OUTPUT |
74 | | - echo "inso-version=$INSO_VERSION" >> $GITHUB_OUTPUT |
75 | | -
|
76 | | - - name: Install node version of node-libcurl for inso tests |
77 | | - run: node_modules/.bin/node-pre-gyp install --update-binary --directory node_modules/@getinsomnia/node-libcurl |
78 | | - |
79 | | - - name : Build Inso |
80 | | - run: npm run build -w insomnia-inso |
81 | | - |
82 | | - - name: Run Inso bundle tests |
83 | | - run: npm run test:bundle -w insomnia-inso |
84 | | - |
85 | | - - name: Package Inso CLI binary |
86 | | - run: npm run inso-package |
87 | | - env: |
88 | | - VERSION: ${{ steps.inso-variables.outputs.inso-version }} |
89 | | - |
90 | | - - name: Run Inso binary tests |
91 | | - run: npm run test:binary -w insomnia-inso |
92 | | - |
93 | | - - name: Create Inso CLI artifacts |
94 | | - run: npm run inso-package:artifacts |
95 | | - env: |
96 | | - VERSION: ${{ steps.inso-variables.outputs.inso-version }} |
97 | | - |
98 | | - - name: Upload Inso CLI artifacts |
99 | | - uses: actions/upload-artifact@v4 |
100 | | - with: |
101 | | - if-no-files-found: ignore |
102 | | - name: ${{ steps.inso-variables.outputs.pkg-name }} |
103 | | - path: packages/insomnia-inso/artifacts |
104 | | - |
105 | 61 | # This step should always run even when previous steps fail |
106 | 62 | - name: Upload smoke test traces |
107 | 63 | uses: actions/upload-artifact@v4 |
|
0 commit comments