Skip to content

Commit

Permalink
Get rid of duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
BramDC3 committed Sep 11, 2024
1 parent 34eabee commit 8905492
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
23 changes: 23 additions & 0 deletions .github/actions/prepare_ubuntu_runner/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Prepare Ubuntu runner"
description: "Prepare Ubuntu runner"
runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.1" # TODO: keep this somewhere where it's easy to change

- name: Install gems
shell: bash
run: bundle install

- name: Install FVM
shell: bash
run: curl -fsSL https://fvm.app/install.sh | bash

- name: Set up FVM
shell: bash
run: fvm use
File renamed without changes.
17 changes: 2 additions & 15 deletions .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,8 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.1" # TODO: keep this somewhere where it's easy to change

- name: Install gems
run: bundle install

- name: Install FVM
run: curl -fsSL https://fvm.app/install.sh | bash

- name: Set up FVM
run: fvm use
- uses: ./.github/actions/prepare_ubuntu_runner
id: prepare_ubuntu_runner

- name: Run virtual machine tests
run: bundle exec fastlane run_vm_tests
Expand Down

0 comments on commit 8905492

Please sign in to comment.