Skip to content

Commit 0e434d2

Browse files
kmcphillipsandyw8
andauthored
Refactor Github actions CI to correctly load gemfile (#817)
* Correctly load gemfile config Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>
1 parent bf98cda commit 0e434d2

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/build.yml

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
11
name: CI
22

3-
on:
4-
push:
3+
on:
4+
- push
55

66
jobs:
77
build:
8+
name: Ruby ${{ matrix.version }} ${{ matrix.gemfile }}
89
runs-on: ubuntu-latest
9-
name: Ruby ${{ matrix.version }}, ${{ matrix.gemfile }}
10+
env:
11+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
1012
strategy:
1113
matrix:
12-
version: [2.4, 2.5, 2.6, 2.7]
13-
gemfile: [Gemfile_ar41, Gemfile_ar50, Gemfile_ar51, Gemfile_ar_master]
14+
version:
15+
- 2.4
16+
- 2.5
17+
- 2.6
18+
- 2.7
19+
gemfile:
20+
- Gemfile_ar41
21+
- Gemfile_ar50
22+
- Gemfile_ar51
23+
- Gemfile_ar_master
1424
exclude:
1525
- version: 2.7
1626
gemfile: Gemfile_ar41
17-
1827
steps:
1928
- uses: actions/checkout@v2
29+
- name: Remove Gemfile.lock
30+
run: |
31+
rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
2032
- name: Set up Ruby ${{ matrix.version }}
2133
uses: ruby/setup-ruby@v1
22-
with:
34+
with:
2335
ruby-version: ${{ matrix.version }}
24-
- name: Set up gemfile
25-
run: |
26-
export BUNDLE_GEMFILE=${GITHUB_WORKSPACE}/${{ matrix.gemfile }}
27-
rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
2836
- name: Run Tests
2937
run: |
3038
bundle config set --with docs

0 commit comments

Comments
 (0)