Skip to content

Commit

Permalink
Merge pull request #323 from mamercad/update-deprecated-actions
Browse files Browse the repository at this point in the history
Update and upgrade deprecated actions
  • Loading branch information
arm4b authored Dec 5, 2022
2 parents 93b9a44 + 5af3370 commit ebc0296
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ on:
jobs:
integration:
name: 'integration - ${{matrix.name}}'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
# note: actions/setup-ruby only allows using a major.minor release of ruby
# note: ruby/setup-ruby only allows using a major.minor release of ruby
- ruby: '2.7'
name: 'centos7-stable'
distro: 'centos-7'
Expand Down Expand Up @@ -62,9 +63,9 @@ jobs:
ST2_REPO: '${{ matrix.repo }}'
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby }}'
- name: Bundle prep
Expand All @@ -85,7 +86,7 @@ jobs:
bundle config gemfile build/kitchen/Gemfile
bundle lock
# restore cache AFTER doing 'bundle lock' so that Gemfile.lock exists
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
# note: this path is the Gemfile + path from above, so it's different than the base level Gemfile cache
path: build/kitchen/vendor/bundle
Expand All @@ -94,7 +95,7 @@ jobs:
${{ runner.os }}-${{ matrix.name }}-${{ matrix.ruby }}-gems-integration-v3-
- name: Bundle install
run: |
bundle install --jobs $(nproc) --retry 3
bundle install --jobs $(nproc) --retry 3
- name: Test
run: |
echo "Run the Smoke Tests"
Expand All @@ -107,11 +108,11 @@ jobs:
if: always()
needs:
- integration
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Workflow conclusion
# this step creates an environment variable WORKFLOW_CONCLUSION and is the most reliable way to check the status of previous jobs
uses: technote-space/workflow-conclusion-action@v2
uses: technote-space/workflow-conclusion-action@v3
- name: CI Run Failure Slack Notification
if: ${{ env.WORKFLOW_CONCLUSION == 'failure' && github.ref == 'refs/heads/master' }}
env:
Expand Down

0 comments on commit ebc0296

Please sign in to comment.