Skip to content

Commit 7819402

Browse files
committed
Use reusable action for CI
- Implement smart_proxy_plugin action in GitHub CI
1 parent e07d7f2 commit 7819402

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

.github/workflows/ci.yml

+14-23
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11
name: CI
22

33
on:
4-
- pull_request
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
use-reusable-action-for-testing
510
- push
611

12+
concurrency:
13+
group: ${{ github.ref_name }}-${{ github.workflow }}
14+
cancel-in-progress: true
15+
716
jobs:
817
test:
9-
runs-on: ubuntu-latest
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
ruby:
14-
- "2.5"
15-
- "2.6"
16-
- "2.7"
17-
name: Ruby ${{ matrix.ruby }}
18-
steps:
19-
- uses: actions/checkout@v3
20-
- name: Install development headers
21-
run: sudo apt install libkrb5-dev libldap-dev libsasl2-dev -y
22-
- name: Install Ruby ${{ matrix.ruby }}
23-
uses: ruby/setup-ruby@v1
24-
with:
25-
ruby-version: ${{ matrix.ruby }}
26-
bundler-cache: true
27-
- name: Run tests
28-
run: bundle exec rake test
29-
- name: Verify gem builds
30-
run: gem build *.gemspec
18+
name: Tests
19+
uses: theforeman/actions/.github/workflows/smart_proxy_plugin.yml@v0
20+
with:
21+
extra_packages: "libkrb5-dev libldap-dev libsasl2-dev"

0 commit comments

Comments
 (0)