Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
allows for install when using commit hash in package.json deps
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Feb 25, 2022
1 parent 32fd224 commit da7de0f
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 10 deletions.
52 changes: 49 additions & 3 deletions .github/workflows/bundle-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,20 @@ jobs:
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
run: JOBS=max yarn --frozen-lockfile --network-timeout 100000
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
- uses: ledgerhq/actions/packages/get-package-infos@main
id: version
with:
Expand Down Expand Up @@ -145,8 +157,20 @@ jobs:
run: sudo killall -w dpkg || echo OK
- name: install and switch to GCC 5.4
run: ./tools/g++-5.4/install.sh
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
run: JOBS=max yarn --frozen-lockfile --network-timeout 100000
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
- uses: ledgerhq/actions/packages/get-package-infos@main
id: version
with:
Expand Down Expand Up @@ -201,8 +225,20 @@ jobs:
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
- name: install and switch to GCC 5.4
run: ./tools/g++-5.4/install.sh
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
run: JOBS=max yarn --frozen-lockfile --network-timeout 100000
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
- uses: ledgerhq/actions/packages/get-package-infos@main
id: version
with:
Expand Down Expand Up @@ -253,7 +289,17 @@ jobs:
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,20 @@ jobs:
node-version: 14.x
- name: install yarn
run: npm i -g yarn
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
run: yarn --frozen-lockfile --network-timeout 100000
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
- name: install operating system dependencies
run: npx playwright install-deps
- name: build electron app
Expand Down Expand Up @@ -148,10 +158,20 @@ jobs:
node-version: 14.x
- name: install yarn
run: npm i -g yarn
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
run: yarn --frozen-lockfile --network-timeout 100000
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
- name: install operating system dependencies
run: npx playwright install-deps
- name: build electron app
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ui-tests-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ jobs:
- name: unzip files
run: |
unzip tests-reports.zip
unzip playwright-results-windows-latest.zip -d pw-windows
unzip playwright-results-linux.zip -d pw-linux
unzip images-linux.json.zip
unzip images-windows-latest.json.zip
unzip tests-reports.zip || true
unzip playwright-results-windows-latest.zip -d pw-windows || true
unzip playwright-results-linux.zip -d pw-linux || true
unzip images-linux.json.zip || true
unzip images-windows-latest.json.zip || true
rm tests-reports.zip playwright-results-windows-latest.zip playwright-results-linux.zip images-linux.json.zip images-windows-latest.json.zip
- name: parse images
uses: actions/github-script@v6
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,17 @@ jobs:
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
Expand Down Expand Up @@ -138,7 +148,17 @@ jobs:
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
Expand Down Expand Up @@ -198,7 +218,17 @@ jobs:
git config user.name "Team Live"
- name: install linux dependencies
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
Expand Down Expand Up @@ -250,7 +280,17 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- name: install dependencies
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --frozen-lockfile --network-timeout 100000
Expand Down

1 comment on commit da7de0f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint outputs ✅

Tests outputs ✅

PASS src/generate-cryptoassets-md.test.js

Test Suites: 1 skipped, 1 passed, 1 of 2 total
Tests: 5 skipped, 1 passed, 6 total
Snapshots: 0 total
Time: 2.946 s
Test results written to: report.json

Diff output ✅

Please sign in to comment.