From aa2dc2e2deb3db2b5420b51adcd8a45798530649 Mon Sep 17 00:00:00 2001 From: David Marby Date: Wed, 2 Feb 2022 12:11:13 +0100 Subject: [PATCH] Speed up the tests workflow (#4430) --- .github/workflows/test.yml | 48 ++++---------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9cacb5be03..6a679a87b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,6 @@ on: push: branches: - develop - - master pull_request: types: - opened @@ -19,7 +18,7 @@ jobs: inso-version: ${{ steps.get-package-version.outputs.current-version }} steps: - name: Checkout branch - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Get version id: get-package-version uses: martinbeentjes/npm-get-version-action@master @@ -35,7 +34,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout branch - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Read Node version from .nvmrc run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" @@ -50,12 +49,15 @@ jobs: run: npm run bootstrap - name: Lint + if: matrix.os == 'ubuntu-latest' run: npm run lint - name: Lint markdown + if: matrix.os == 'ubuntu-latest' run: npm run lint:markdown - name: Type checks + if: matrix.os == 'ubuntu-latest' run: npm run type-check - name: Run tests @@ -84,46 +86,6 @@ jobs: env: VERSION: ${{ steps.inso-variables.outputs.inso-version }} - - name: Codesign & create macOS installer - if: matrix.os == 'macos-latest' - run: | - chmod +x ./src/scripts/macos-pkg.sh - ./src/scripts/macos-pkg.sh - shell: bash - working-directory: packages/insomnia-inso - continue-on-error: true - env: - MACOS_CERTIFICATE: ${{ secrets.DESIGNER_MAC_CSC_LINK }} - MACOS_CERTIFICATE_PWD: ${{ secrets.DESIGNER_MAC_CSC_KEY_PASSWORD }} - PKG_NAME: ${{ steps.inso-variables.outputs.pkg-name }} - BUNDLE_ID: ${{ steps.inso-variables.outputs.bundle-id }} - VERSION: ${{ steps.inso-variables.outputs.inso-version }} - - # We don't need to notarize and staple on every commit - # - name: Notarize installer - # if: matrix.os == 'macos-latest' - # uses: devbotsxyz/xcode-notarize@v1 - # with: - # product-path: packages/insomnia-inso/artifacts/${{ steps.inso-variables.outputs.pkg-name }}.pkg - # primary-bundle-id: ${{ steps.inso-variables.outputs.bundle-id }} - # appstore-connect-username: ${{ secrets.DESIGNER_APPLE_ID }} - # appstore-connect-password: ${{ secrets.DESIGNER_APPLE_ID_PASSWORD }} - - # - name: Staple installer - # if: matrix.os == 'macos-latest' - # uses: devbotsxyz/xcode-staple@v1 - # with: - # product-path: packages/insomnia-inso/artifacts/${{ steps.inso-variables.outputs.pkg-name }}.pkg - - # - name: Notarize binary - # if: matrix.os == 'macos-latest' - # uses: devbotsxyz/xcode-notarize@v1 - # with: - # product-path: packages/insomnia-inso/binaries/inso - # primary-bundle-id: ${{ steps.inso-variables.outputs.bundle-id }}-binary - # appstore-connect-username: ${{ secrets.DESIGNER_APPLE_ID }} - # appstore-connect-password: ${{ secrets.DESIGNER_APPLE_ID_PASSWORD }} - - name: Create Inso CLI artifacts run: npm run inso-package:artifacts env: