Skip to content

Commit

Permalink
run ws tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky committed Nov 5, 2024
1 parent 7ac2958 commit 8262b0d
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/net-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (.Net)
name: '[net] CI (.Net)'

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rs-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (Rust)
name: '[rs] CI (Rust)'

on:
push:
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/rs-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release (Rust)
name: '[rs] Release (Rust)'

on:
push:
Expand Down Expand Up @@ -63,19 +63,12 @@ jobs:
ws_tests:
name: Run Workspace Tests
runs-on: ubuntu-latest
needs:
prepare

steps:
- name: Say Hello
run: |
echo "Run WS tests on branch ${{ needs.prepare.outputs.rc_branch }}"
- name: Checkout Code from Release Branch
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare.outputs.rc_branch }}
uses: ./.github/workflows/rs-run-ws-tests.yml
with:
sources_ref: ${{ needs.prepare.outputs.rc_branch }}
gear_node_version: 1.6.0

cli_tests:
name: Run CLI Tests
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/rs-run-ws-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: '[rs] Run Workspace Tests'

on:
workflow_call:
inputs:
sources_ref:
description: 'Sources Ref'
required: true
type: string
gear_node_version:
description: 'Gear Node Version'
required: true
type: string

env:
BINARYEN_VERSION: version_111

jobs:
ws_tests:
name: Run Workspace Tests
runs-on: ubuntu-latest

steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: false
haskell: true
large-packages: false
docker-images: true
swap-storage: true

- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ inputs.sources_ref }}

- name: Install wasm-opt
run: |
sudo wget -c https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_VERSION/binaryen-$BINARYEN_VERSION-x86_64-linux.tar.gz -O - | sudo tar -xz -C .
sudo cp binaryen-$BINARYEN_VERSION/bin/wasm-opt /usr/bin/
- name: Download Gear Node
run: |
sudo wget -O ./gear https://github.com/gear-tech/gear/releases/download/v${{ inputs.gear_node_version }}/gear
sudo chmod +x gear
sudo mv gear /usr/bin/
- name: Run Tests
env:
GEAR_PATH: /usr/bin/gear
run: __GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo test --workspace --all-targets --locked --no-fail-fast -- --include-ignored

0 comments on commit 8262b0d

Please sign in to comment.