forked from berkshelf/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1018 Bytes
/
verify-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run Rake Tests
on:
push:
branches:
- workstation-LTS
pull_request:
branches:
- workstation-LTS
jobs:
unit-tests:
name: Execute Tests cases
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout Code
uses: actions/checkout@v4
# Step 2: Set up Ruby
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1 # Use Ruby 3.1 as specified
# Step 3: Install system dependencies
- name: Install Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y graphviz
# Step 4: Install project dependencies
- name: Install Bundler and Dependencies
run: |
rm -f .bundle/config
gem install bundler
bundle config set --local path 'vendor/bundle'
bundle install --jobs=3 --retry=3
# Step 5: Run the Rake tests
- name: Run Rake Tests
run: |
bundle exec rake