Skip to content

Commit

Permalink
Build in test script
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Sep 26, 2024
1 parent 70ceeec commit c9b8668
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/language-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ jobs:
- name: Build schemas
run: npm run schemas

- name: Build workspace
run: cargo build --package bitwarden-json --package bitwarden-uniffi --all-features

- name: Zip languages dir
run: zip -r languages.zip languages

Expand All @@ -64,13 +61,6 @@ jobs:
path: ${{ github.workspace }}/languages.zip
if-no-files-found: error

- name: Uplad c lib
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: debug.libbitwarden_c.so
path: ${{ github.workspace }}/target/debug/libbitwarden_c.so
if-no-files-found: error

test:
name: ${{ matrix.language }}

Expand Down Expand Up @@ -133,16 +123,6 @@ jobs:
rm -rf languages
unzip languages.zip
- name: Download C lib
if: matrix.language == 'ruby'
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: debug.libbitwarden_c.so

- name: Move C lib
if: matrix.language == 'ruby'
run: mv debug.libbitwarden_c.so target/debug/libbitwarden_c.so

- name: Set up run data
run: |
cargo run --release --bin language-tests setup
Expand Down
1 change: 1 addition & 0 deletions languages/ruby/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
cargo build --package bitwarden-c
cd spec
bundle install
bundle exec rspec e2e_spec.rb

0 comments on commit c9b8668

Please sign in to comment.