Skip to content

Commit

Permalink
Merge pull request #291 from LedgerHQ/update-ci-actions
Browse files Browse the repository at this point in the history
Update ci action versions
  • Loading branch information
bigspider authored Oct 7, 2024
2 parents a40b100 + 6fe785e commit c9144de
Show file tree
Hide file tree
Showing 182 changed files with 41 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builder-image-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build and push speculos-bitcoin to GitHub Packages
uses: docker/build-push-action@v1
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
run: |
make DEBUG=0 COIN=bitcoin BOLOS_SDK=${{ matrix.SDK }} && mv bin/ bitcoin-bin/
make clean
make DEBUG=0 COIN=bitcoin_testnet BOLOS_SDK=${{ matrix.SDK }} && mv bin/ bitcoin-testnet-bin/
- name: Upload Bitcoin app binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bitcoin-app-${{ matrix.model }}
path: bitcoin-bin

- name: Upload Bitcoin Testnet app binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bitcoin-testnet-app-${{ matrix.model }}
path: bitcoin-testnet-bin
Expand All @@ -63,14 +63,14 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
run: |
make DEBUG=0 COIN=bitcoin_testnet BOLOS_SDK="$NANOSP_SDK" AUTOAPPROVE_FOR_PERF_TESTS=1
- name: Upload Bitcoin Testnet app binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bitcoin-testnet-perftest-app-nanosp
path: bin
Expand All @@ -85,7 +85,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build unit tests
run: |
Expand All @@ -99,7 +99,7 @@ jobs:
lcov --directory . -b "$(realpath build/)" --add-tracefile coverage.base --add-tracefile coverage.capture -o coverage.info && \
lcov --directory . -b "$(realpath build/)" --remove coverage.info '*/unit-tests/*' -o coverage.info && \
genhtml coverage.info -o coverage
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: code-coverage
path: unit-tests/coverage
Expand All @@ -117,7 +117,7 @@ jobs:
- name: HTML documentation
run: doxygen .doxygen/Doxyfile

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: documentation
path: doc/html
Expand Down Expand Up @@ -148,10 +148,10 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download Bitcoin app binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: bitcoin-app-${{matrix.model}}
path: bin
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Run tests
run: |
Expand All @@ -207,10 +207,10 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download Bitcoin app binary for perftests
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: bitcoin-testnet-perftest-app-nanosp
path: bin
Expand All @@ -221,7 +221,7 @@ jobs:
pip install -r requirements.txt
PYTHONPATH=$PYTHONPATH:/speculos pytest --headless --model=nanosp --benchmark-json=benchmarks.json
- name: Upload benchmarks summary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: benchmarks-log
path: tests_perf/benchmarks.json
Expand All @@ -244,19 +244,19 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 20

- name: Install yarn
run: |
npm install -g yarn
- name: Download Bitcoin Testnet app binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: bitcoin-testnet-app-nanosp
path: bin
Expand All @@ -278,7 +278,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
Expand Down
9 changes: 9 additions & 0 deletions bitcoin_client_js/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
presets: [
['@babel/preset-env', {
targets: {
node: 'current'
}
}]
],
};
10 changes: 8 additions & 2 deletions bitcoin_client_js/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
},
transformIgnorePatterns: [
"node_modules/(?!(axios)/)"
]
};
2 changes: 2 additions & 0 deletions bitcoin_client_js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@
"bitcoinjs-lib": "^6.1.3"
},
"devDependencies": {
"@babel/preset-env": "^7.25.7",
"@ledgerhq/hw-transport-node-speculos-http": "^6.24.1",
"@ledgerhq/logs": "^6.10.0",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"babel-jest": "^29.7.0",
"codecov": "^3.5.0",
"cspell": "^4.1.0",
"eslint": "^7.8.0",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_sighash_all_anyone_sign_0_0/00000.png
Binary file modified tests/snapshots/flex/test_sighash_all_anyone_sign_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sighash_all_sign_psbt_0_0/00000.png
Binary file modified tests/snapshots/flex/test_sighash_all_sign_psbt_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sighash_none_anyone_sign_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sighash_none_sign_psbt_0_0/00000.png
Binary file modified tests/snapshots/flex/test_sighash_none_sign_psbt_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sighash_single_sign_psbt_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sighash_unsupported_0_0/00000.png
Binary file modified tests/snapshots/flex/test_sighash_unsupported_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sign_psbt_highfee_0_0/00000.png
Binary file modified tests/snapshots/flex/test_sign_psbt_highfee_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sign_psbt_multisig_wsh_0_0/00000.png
Binary file modified tests/snapshots/flex/test_sign_psbt_multisig_wsh_0_1/00000.png
Binary file modified tests/snapshots/flex/test_sign_psbt_with_opreturn_0_2/00000.png
Binary file modified tests/snapshots/flex/test_sign_psbt_with_opreturn_0_3/00000.png

0 comments on commit c9144de

Please sign in to comment.