ci: pack exe before running the tests [skip ci test]

This commit is contained in:
Amin Yahyaabadi 2022-01-30 19:01:34 -08:00
parent 454f319514
commit c7acc73aa7
2 changed files with 9 additions and 8 deletions

View File

@ -53,13 +53,6 @@ jobs:
run: | run: |
pnpm install pnpm install
# - name: Setup SSH debugging session
# uses: mxschmitt/action-tmate@v3
- name: Test
run: |
pnpm run test
# Create self-contained executable that bundles Nodejs # Create self-contained executable that bundles Nodejs
- name: Create Executable - name: Create Executable
run: | run: |
@ -73,6 +66,14 @@ jobs:
./dist ./dist
retention-days: 1 retention-days: 1
# - name: Setup SSH debugging session
# uses: mxschmitt/action-tmate@v3
- name: Test
if: "!contains(github.event.head_commit.message, '[skip ci test]')"
run: |
pnpm run test
Docker: Docker:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:

View File

@ -4,7 +4,7 @@ import { isValidUrl } from "../../utils/http/validate_url"
import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers" import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers"
import { isGitHubCI } from "../../utils/env/isci" import { isGitHubCI } from "../../utils/env/isci"
jest.setTimeout(300000) jest.setTimeout(400000)
async function testUrl(version: string) { async function testUrl(version: string) {
const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, process.platform, version, getUrl) const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, process.platform, version, getUrl)