-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #532 from Oxen-AI/fix/Windows_Rspec
Move Windows Rspec tests inside unit test module
- Loading branch information
Showing
1 changed file
with
23 additions
and
46 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 |
---|---|---|
|
@@ -202,11 +202,29 @@ jobs: | |
cmd /c "START /B .\target\debug\oxen-server.exe start" | ||
cargo test -- --test-threads=1 | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
name: oxen-binary-windows | ||
path: target/debug/oxen* | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- name: Run Rspec Tests | ||
env: | ||
PATH: ${{ env.PATH }};${{ github.workspace }}/target/debug | ||
run: | | ||
echo "Adding user" | ||
.\target\debug\oxen-server.exe add-user --email [email protected] --name Ox --output user_config.toml | ||
echo "Copying user config" | ||
cp user_config.toml data\test\config\user_config.toml | ||
echo "Starting server" | ||
pwd | ||
ls .\target\debug\ | ||
cmd /c "START /B .\target\debug\oxen-server.exe start" | ||
echo "🐂 Running tests" | ||
cd cli-test | ||
bundle config path vendor/bundle | ||
bundle install | ||
bundle exec rspec spec/test_cases/**/tests.rb | ||
rpsec_tests_macos: | ||
name: MacOS RSpec CLI Tests | ||
|
@@ -267,45 +285,4 @@ jobs: | |
working-directory: ./cli-test | ||
run: | | ||
bundle exec rspec spec/test_cases/**/tests.rb | ||
rspec_test_windows: | ||
name: Windows RSpec CLI Tests | ||
needs: [test_windows] | ||
runs-on: windows-latest | ||
|
||
env: | ||
OXEN_API_KEY: ${{ secrets.DEV_OXEN_API_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: oxen-binary-windows | ||
path: target/debug | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- name: Run oxen-server | ||
env: | ||
PATH: ${{ env.PATH }};${{ github.workspace }}/target/debug | ||
run: | | ||
mkdir .\data\test\runs | ||
echo "Adding user" | ||
.\target\debug\oxen-server.exe add-user --email [email protected] --name Ox --output user_config.toml | ||
echo "Copying user config" | ||
cp user_config.toml data\test\config\user_config.toml | ||
echo "Starting server" | ||
pwd | ||
ls .\target\debug\ | ||
cmd /c "START /B .\target\debug\oxen-server.exe start" | ||
echo "🐂 Running tests" | ||
cd cli-test | ||
bundle config path vendor/bundle | ||
bundle install | ||
bundle exec rspec spec/test_cases/**/tests.rb | ||