Skip to content

Commit cd4cfce

Browse files
committed
Use a reusable workflow for CI
1 parent 57e2cc2 commit cd4cfce

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
1-
name: Test
1+
---
2+
name: CI
23

34
on:
4-
- pull_request
5-
- push
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
10+
concurrency:
11+
group: ${{ github.ref_name }}-${{ github.workflow }}
12+
cancel-in-progress: true
613

714
jobs:
815
test:
9-
runs-on: ubuntu-latest
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
include:
14-
- ruby: "3.1"
15-
- ruby: "3.2"
16-
- ruby: "3.3"
17-
steps:
18-
- uses: actions/checkout@v4
19-
- name: Install Ruby ${{ matrix.ruby }}
20-
uses: ruby/setup-ruby@v1
21-
with:
22-
ruby-version: ${{ matrix.ruby }}
23-
bundler-cache: true
24-
- name: Run tests
25-
run: bundle exec rake spec
26-
- name: Verify gem builds
27-
run: gem build *.gemspec
16+
name: Tests
17+
uses: theforeman/actions/.github/workflows/test-gem.yml@v0

0 commit comments

Comments
 (0)