Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci) : update dependencies and define caches #385

Merged
merged 2 commits into from
Aug 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
- package-ecosystem: bundler
directory: /
schedule:
interval: weekly
- package-ecosystem: docker
directory: docker
schedule:
interval: weekly
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- id: get_version
name: Get package version
uses: actions/github-script@v3
uses: actions/github-script@v4.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
Expand All @@ -41,7 +41,7 @@ jobs:

- id: get_url
name: Get release upload url
uses: actions/github-script@v3
uses: actions/github-script@v4.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
Expand All @@ -65,7 +65,7 @@ jobs:

- id: get_ref
name: Get checkout ref for custom build scripts
uses: actions/github-script@v3
uses: actions/github-script@v4.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
Expand Down
163 changes: 126 additions & 37 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -45,10 +48,13 @@ jobs:
yes | gem uninstall bundler --all
gem install bundler -v "${{ matrix.bundler }}"
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -74,10 +80,22 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: bundle lock
- uses: actions/cache@v1
- name: cache cabal dependencies
uses: actions/cache@v2
with:
path: |
~/.cabal/packages
~/.cabal/store
key: ${{ runner.os }}-cabal-${{ matrix.ghc }}-${{ hashFiles('**/app.cabal') }}
restore-keys: |
${{ runner.os }}-cabal-
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -93,18 +111,21 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup php
uses: nanasess/setup-php@v3.0.6
uses: nanasess/setup-php@v3.0.8
with:
php-version: ${{ matrix.php }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -126,10 +147,13 @@ jobs:
- name: Set up Bundler
run: gem install bundler
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-${{ matrix.ruby }}-
- name: Bootstrap
run: script/bootstrap
- name: Build and lint
Expand All @@ -142,18 +166,21 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.10.x
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -169,18 +196,30 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache go dependencies
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand Down Expand Up @@ -211,10 +250,22 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: adopt
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gradle dependencies
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
jonabc marked this conversation as resolved.
Show resolved Hide resolved
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Gradle version
Expand All @@ -231,10 +282,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Run tests
Expand All @@ -248,7 +302,7 @@ jobs:
elixir: [ 1.11.x, 1.12.x ]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1.6.0
- uses: erlef/setup-elixir@v1.9
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
Expand All @@ -257,10 +311,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -284,10 +341,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -311,10 +371,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand All @@ -330,7 +393,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
Expand All @@ -339,10 +402,20 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache pip dependencies
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here - this might need to include ${{ matrix.python }} as part of the key and restore key

restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Install virtualenv
Expand All @@ -357,7 +430,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: x64
Expand All @@ -366,10 +439,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Install pipenv
Expand All @@ -395,10 +471,20 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache spm dependencies
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and same here with ${{ matrix.swift }}

restore-keys: |
${{ runner.os }}-spm-
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand Down Expand Up @@ -427,10 +513,13 @@ jobs:
with:
ruby-version: 2.6
- run: bundle lock
- uses: actions/cache@v1
- uses: actions/cache@v2
name: cache gem dependencies
with:
path: vendor/gems
key: ${{ runner.os }}-gem-2.6.x-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-2.6-
- name: Bootstrap
run: script/bootstrap
- name: Set up fixtures
Expand Down
Loading