diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6bdfe5e..b416fd9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,16 +15,16 @@ jobs: matrix: ruby-version: - 3.2 - - 3.1 - - "3.0" - - 2.7 - - 2.6 - - 2.5 + #- 3.1 + #- "3.0" + #- 2.7 + #- 2.6 + #- 2.5 rails-version: # - "edge" - - 7 + #- 7 - 6.1 - - "6.0" + #- "6.0" exclude: # Rails 7 requires Ruby 2.7+ - ruby-version: 2.5 @@ -38,20 +38,46 @@ jobs: rails-version: "6.0" steps: - uses: actions/checkout@v3 + - name: echo environment1 + run: | + cat /etc/environment - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} + - name: echo environment2 + run: | + cat /etc/environment - uses: actions/setup-node@v3 with: node-version: 18 + - name: echo environment3 + run: | + cat /etc/environment + - name: Add non-root user foo + run: | + adduser --disabled-login --disabled-password --gecos '' foo - name: Install Yarn - run: npm install -g yarn + run: | + su - foo <<'HERE' + npm install -g yarn + HERE - name: Run gem tests run: | + ruby --version + echo $PATH + + su - foo <<'HERE' + echo $PATH + which ruby + echo GOT HERE 1 + ruby --version + echo GOT HERE 2 + gem install bundler bundle config set --local path '/tmp/gem-tests' bundle bundle exec rake + HERE - name: Set up new Rails dummy app working-directory: ./spec env: