Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abevoelker committed Apr 27, 2024
1 parent 904eb53 commit 17e3910
Showing 1 changed file with 34 additions and 8 deletions.
42 changes: 34 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 17e3910

Please sign in to comment.