Skip to content

Commit c192383

Browse files
authored
Merge pull request #11 from csfloat/chore/upgrade-workflows
Upgrades GitHub Workflows
2 parents cd7a7fc + 4b0375b commit c192383

File tree

3 files changed

+12
-52
lines changed

3 files changed

+12
-52
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,19 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212

1313
strategy:
1414
matrix:
15-
ruby-version: [2.5, 2.6, 2.7, 3.0]
15+
ruby-version: [2.7.2]
1616

1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Set up Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: ${{ matrix.ruby-version }}
23-
24-
- uses: actions/cache@v2
25-
with:
26-
path: vendor/bundle
27-
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
28-
restore-keys: |
29-
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
30-
gems-${{ runner.os }}-
31-
32-
# necessary to get ruby 2.3 to work nicely with bundler vendor/bundle cache
33-
# can remove once ruby 2.3 is no longer supported
34-
- run: gem update --system
35-
36-
- run: bundle config set deployment 'true'
37-
- name: bundle install
38-
run: |
39-
bundle config path vendor/bundle
40-
bundle install --jobs 4 --retry 3
23+
bundler: '2.2.33'
24+
bundler-cache: true
4125

4226
- run: bundle exec middleman build

.github/workflows/deploy.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,18 @@ on:
66

77
jobs:
88
deploy:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
env:
11-
ruby-version: 2.5
11+
ruby-version: 2.7.2
1212

1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
1818
ruby-version: ${{ env.ruby-version }}
19-
20-
- uses: actions/cache@v2
21-
with:
22-
path: vendor/bundle
23-
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
24-
restore-keys: |
25-
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
26-
gems-${{ runner.os }}-
27-
28-
- run: bundle config set deployment 'true'
29-
- name: bundle install
30-
run: |
31-
bundle config path vendor/bundle
32-
bundle install --jobs 4 --retry 3
19+
bundler: '2.2.33'
20+
bundler-cache: true
3321

3422
- run: bundle exec middleman build
3523

.github/workflows/dev_deploy.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,18 @@ on:
66

77
jobs:
88
deploy:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
env:
11-
ruby-version: 2.5
11+
ruby-version: 2.7.2
1212

1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
1818
ruby-version: ${{ env.ruby-version }}
19-
20-
- uses: actions/cache@v2
21-
with:
22-
path: vendor/bundle
23-
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
24-
restore-keys: |
25-
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
26-
gems-${{ runner.os }}-
27-
28-
- run: bundle config set deployment 'true'
29-
- name: bundle install
30-
run: |
31-
bundle config path vendor/bundle
32-
bundle install --jobs 4 --retry 3
19+
bundler: '2.2.33'
20+
bundler-cache: true
3321

3422
- run: bundle exec middleman build
3523

0 commit comments

Comments
 (0)