chore(master): release 0.7.3 (#14) #126
This file contains hidden or 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
| name: Test | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25' | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run tests | |
| run: go test -v ./... | |
| - name: Build binary | |
| run: go build -o orelight ./cmd/ore | |
| - name: Test add command help | |
| run: ./orelight add --help || true | |
| - name: Test remove command help | |
| run: ./orelight remove --help || true | |
| - name: Test add and remove commands | |
| run: | | |
| cd testdata/resolver_test | |
| # Create a simple Gemfile | |
| echo 'source "https://rubygems.org"' > Gemfile | |
| echo 'gem "rake"' >> Gemfile | |
| # Generate initial lockfile with bundler | |
| bundle lock | |
| # Test adding a gem with --lock | |
| ../../orelight add --lock --version "~> 3.12" rspec | |
| # Verify rspec was added to Gemfile | |
| grep -q "rspec" Gemfile || (echo "rspec not found in Gemfile" && exit 1) | |
| # Verify lockfile was updated | |
| grep -q "rspec" Gemfile.lock || (echo "rspec not found in Gemfile.lock" && exit 1) | |
| # Test removing a gem | |
| ../../orelight remove rspec | |
| # Verify rspec was removed from Gemfile | |
| ! grep -q "rspec" Gemfile || (echo "rspec still in Gemfile" && exit 1) |