2022-03-09 19:03:14 +00:00
|
|
|
name: Release Recurring
|
2022-02-10 15:32:33 +00:00
|
|
|
# This workflow bakes executables of the major platforms for Testing purposes
|
|
|
|
on:
|
2023-03-31 10:51:31 +00:00
|
|
|
merge_group:
|
2022-02-10 15:32:33 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
concurrency:
|
2023-03-31 10:51:31 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-02-14 17:21:45 +00:00
|
|
|
env:
|
|
|
|
PR_NUMBER: ${{ github.event.number }}
|
2022-02-10 15:32:33 +00:00
|
|
|
jobs:
|
|
|
|
build-and-upload-artifacts:
|
2024-02-06 12:27:19 +00:00
|
|
|
timeout-minutes: 25
|
2022-03-10 17:45:11 +00:00
|
|
|
# Skip jobs for release PRs
|
2023-09-27 14:58:09 +00:00
|
|
|
# windows on recurring should be portable
|
2023-08-11 08:22:01 +00:00
|
|
|
if: ${{ !startsWith(github.head_ref, 'release/') }}
|
2022-02-10 15:32:33 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-06-27 18:16:03 +00:00
|
|
|
- os: "macos-latest"
|
|
|
|
build-targets: "zip"
|
2023-03-31 10:51:31 +00:00
|
|
|
- os: "windows-latest"
|
|
|
|
build-targets: "portable"
|
|
|
|
- os: "ubuntu-latest"
|
|
|
|
build-targets: "tar.gz"
|
2022-02-10 15:32:33 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
2024-02-27 14:49:14 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-02-10 15:32:33 +00:00
|
|
|
|
|
|
|
- name: Setup Node
|
2024-02-27 14:49:14 +00:00
|
|
|
uses: actions/setup-node@v4
|
2022-02-10 15:32:33 +00:00
|
|
|
with:
|
2023-03-31 10:51:31 +00:00
|
|
|
node-version-file: ".nvmrc"
|
2023-08-09 22:14:16 +00:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: package-lock.json
|
2022-02-10 15:32:33 +00:00
|
|
|
|
2023-08-09 22:14:16 +00:00
|
|
|
- name: Install packages
|
|
|
|
run: npm ci
|
2022-02-10 15:32:33 +00:00
|
|
|
|
2022-03-09 15:06:53 +00:00
|
|
|
- name: Bump version
|
|
|
|
shell: bash
|
2023-08-10 09:04:28 +00:00
|
|
|
run: npm --workspaces version prerelease --preid="$(git rev-parse --short HEAD)${{ github.event_name == 'pull_request' && '.pr-$PR_NUMBER' || '' }}" --no-git-tag-version
|
2022-03-09 15:06:53 +00:00
|
|
|
|
2022-02-10 15:32:33 +00:00
|
|
|
- name: Package
|
|
|
|
shell: bash
|
2022-06-28 09:29:28 +00:00
|
|
|
run: NODE_OPTIONS='--max_old_space_size=6144' BUILD_TARGETS='${{ matrix.build-targets }}' npm run app-package
|
2024-06-05 11:12:05 +00:00
|
|
|
|
|
|
|
# - name: Set publish metadata # Checksum for provenance must be calculated before moving artifacts temporarily
|
|
|
|
# id: metadata
|
|
|
|
# run: |
|
|
|
|
# INSO_VERSION=$(jq .version packages/insomnia-inso/package.json -rj)
|
|
|
|
# echo "INSO_VERSION=${INSO_VERSION}" >> $GITHUB_ENV
|
|
|
|
# ./.github/scripts/generate-binary-digest.sh
|
|
|
|
# env:
|
|
|
|
# ARTIFACT_PATH: "packages"
|
|
|
|
# CLI_ARTIFACT_SHAFILE: ${{runner.temp}}/cli.sha256
|
|
|
|
# ELECTRON_ARTIFACT_SHAFILE: ${{runner.temp}}/electron.sha256
|
2022-02-10 15:32:33 +00:00
|
|
|
|
2023-08-13 10:30:04 +00:00
|
|
|
- name: Test critical path on packaged electron app
|
|
|
|
run: npm run test:package -w packages/insomnia-smoke-test -- --project=Critical
|
2023-08-28 14:06:47 +00:00
|
|
|
env:
|
|
|
|
INSOMNIA_UPDATES_URL: http://localhost:4010
|
2023-08-11 08:22:01 +00:00
|
|
|
|
|
|
|
- name: Upload smoke test traces
|
2024-02-27 14:49:14 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-08-11 08:22:01 +00:00
|
|
|
with:
|
|
|
|
if-no-files-found: ignore
|
|
|
|
name: ${{ matrix.os }}-package-critical-test-traces-${{ github.run_number }}
|
|
|
|
path: packages/insomnia-smoke-test/traces
|
|
|
|
|
2022-02-10 15:32:33 +00:00
|
|
|
- name: Upload artifacts
|
2024-02-27 14:49:14 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-02-10 15:32:33 +00:00
|
|
|
with:
|
|
|
|
if-no-files-found: ignore
|
|
|
|
name: ${{ matrix.os }}-artifacts-${{ github.run_number }}
|
|
|
|
path: |
|
2022-04-20 17:42:19 +00:00
|
|
|
packages/insomnia/dist/*.exe
|
|
|
|
packages/insomnia/dist/*.tar.gz
|
|
|
|
packages/insomnia/dist/*.zip
|