Skip to content

Commit 62e90bd

Browse files
committed
Lint on CI and remove the Gemfile.lock before running the test suite
1 parent 7db18dc commit 62e90bd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,28 @@ name: "Run the test suite"
22
on: push
33

44
jobs:
5+
lint:
6+
timeout-minutes: 5
7+
name: "Ruby linter"
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: "Checkout code"
11+
uses: "actions/checkout@v5"
12+
- name: "Setup ruby"
13+
uses: "ruby/setup-ruby@v1"
14+
with:
15+
bundler-cache: true
16+
- name: "Run rubocop"
17+
run: "bundle exec rubocop"
518
test:
619
timeout-minutes: 10
720
name: "Testing the gem"
821
runs-on: ubuntu-latest
922
steps:
1023
- name: "Checkout code"
1124
uses: "actions/checkout@v5"
25+
- name: "Remove the Gemfile.lock"
26+
run: "rm -rf Gemfile.lock"
1227
- name: "Setup ruby"
1328
uses: "ruby/setup-ruby@v1"
1429
with:

0 commit comments

Comments
 (0)