-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lucas Steuernagel <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,14 +293,11 @@ jobs: | |
- name: Test Anchor | ||
run: anchor test --skip-local-validator | ||
working-directory: ./integration/anchor | ||
- name: Compress test coverage files | ||
run: tar -czvf anchor-tests.tar.gz *.profraw | ||
working-directory: ./target | ||
- name: Upload test coverage files | ||
uses: actions/[email protected] | ||
with: | ||
name: anchor-tests.tar.gz | ||
path: ./target/anchor-tests.tar.gz | ||
name: anchor-tests | ||
path: ./target/*.profraw | ||
|
||
solana: | ||
name: Solana Integration test | ||
|
@@ -337,14 +334,11 @@ jobs: | |
- name: Deploy and test contracts | ||
run: npm run test | ||
working-directory: ./integration/solana | ||
- name: Compress test coverage files | ||
run: tar -czvf solana-tests.tar.gz *.profraw | ||
working-directory: ./target | ||
- name: Upload test coverage files | ||
uses: actions/[email protected] | ||
with: | ||
name: solana-tests.tar.gz | ||
path: ./target/solana-tests.tar.gz | ||
name: solana-test | ||
path: ./target/*.profraw | ||
|
||
polkadot: | ||
name: Polkadot Integration test | ||
|
@@ -383,14 +377,11 @@ jobs: | |
- name: Deploy and test contracts | ||
run: npm run test | ||
working-directory: ./integration/polkadot | ||
- name: Compress test coverage files | ||
run: tar -czvf polkadot-tests.tar.gz *.profraw | ||
working-directory: ./target | ||
- name: Upload test coverage files | ||
uses: actions/[email protected] | ||
with: | ||
name: polkadot-tests.tar.gz | ||
path: ./target/polkadot-tests.tar.gz | ||
name: polkadot-tests | ||
path: ./target/*.profraw | ||
- name: cleanup | ||
if: always() | ||
run: docker kill ${{steps.substrate.outputs.id}} | ||
|
@@ -429,14 +420,11 @@ jobs: | |
- name: cleanup | ||
if: always() | ||
run: docker kill ${{steps.substrate.outputs.id}} | ||
- name: Compress test coverage files | ||
run: tar -czvf polkadot-subxt-tests.tar.gz *.profraw | ||
working-directory: ./target | ||
- name: Upload test coverage files | ||
uses: actions/[email protected] | ||
with: | ||
name: polkadot-subxt-tests.tar.gz | ||
path: ./target/polkadot-subxt-tests.tar.gz | ||
name: polkadot-subxt-tests | ||
path: ./target/*.profraw | ||
|
||
vscode: | ||
name: Visual Code Extension | ||
|
@@ -469,14 +457,11 @@ jobs: | |
working-directory: ./vscode | ||
- run: vsce package | ||
working-directory: ./vscode | ||
- name: Compress test coverage files | ||
run: tar -czvf vscode-tests.tar.gz *.profraw | ||
working-directory: ./target | ||
- name: Upload test coverage files | ||
uses: actions/[email protected] | ||
with: | ||
name: vscode-tests.tar.gz | ||
path: ./target/vscode-tests.tar.gz | ||
name: vscode-tests | ||
path: ./target/*.profraw | ||
|
||
std-lib-tests: | ||
name: Stdlib | ||
|
@@ -516,10 +501,6 @@ jobs: | |
components: llvm-tools | ||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
# - name: Build solang | ||
# run: | | ||
# cargo llvm-cov clean --workspace | ||
# cargo build | ||
- name: Download Rust coverage files | ||
uses: actions/download-artifact@master | ||
with: | ||
|
@@ -528,36 +509,30 @@ jobs: | |
- name: Download Solana coverage files | ||
uses: actions/download-artifact@master | ||
with: | ||
name: solana-tests.tar.gz | ||
name: solana-tests | ||
path: ./target | ||
- name: Download Polkadot coverage files | ||
uses: actions/download-artifact@master | ||
with: | ||
name: polkadot-tests.tar.gz | ||
name: polkadot-tests | ||
path: ./target | ||
- name: Download Polkadot subxt coverage files | ||
uses: actions/download-artifact@master | ||
with: | ||
name: polkadot-subxt-tests.tar.gz | ||
name: polkadot-subxt-tests | ||
path: ./target | ||
- name: Download Anchor coverage files | ||
uses: actions/download-artifact@master | ||
with: | ||
name: anchor-tests.tar.gz | ||
name: anchor-tests | ||
path: ./target | ||
- name: Download VSCode coverage files | ||
uses: actions/download-artifact@master | ||
with: | ||
name: vscode-tests.tar.gz | ||
name: vscode-tests | ||
path: ./target | ||
- name: Unpack test coverage files | ||
run: | | ||
tar -xf rust-tests.tar.gz | ||
tar -xf solana-tests.tar.gz | ||
tar -xf polkadot-tests.tar.gz | ||
tar -xf polkadot-subxt-tests.tar.gz | ||
tar -xf anchor-tests.tar.gz | ||
tar -xf vscode-tests.tar.gz | ||
run: tar -xf rust-tests.tar.gz | ||
working-directory: ./target | ||
- name: Generate code report | ||
run: cargo llvm-cov report --lcov --output-path lcov.info | ||
|