-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github actions maintenance (version updates)
- Loading branch information
Michael Ruoss
committed
Aug 20, 2022
1 parent
ee0e7d8
commit a8871cc
Showing
4 changed files
with
53 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,11 @@ jobs: | |
strategy: | ||
matrix: | ||
k8s_version: [latest] | ||
elixir: [1.13.x] | ||
otp: [24.2] | ||
elixir: [1.14.x] | ||
otp: [25.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: debianmaster/[email protected] | ||
id: k3s | ||
with: | ||
|
@@ -31,25 +31,29 @@ jobs: | |
otp-version: ${{matrix.otp}} | ||
|
||
- name: Retrieve Build Cache | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
id: build-folder-cache | ||
with: | ||
path: _build | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
|
||
- name: Retrieve Mix Dependencies Cache | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
id: mix-cache | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
|
||
- name: Retrieve PLT Cache | ||
uses: actions/cache@v1 | ||
- name: Restore PLT Cache | ||
uses: actions/cache@v3 | ||
id: plt-cache | ||
with: | ||
path: priv/plts | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-v2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
key: | | ||
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt | ||
restore-keys: | | ||
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt | ||
path: | | ||
priv/plts | ||
- name: Install Mix Dependencies | ||
if: steps.mix-cache.outputs.cache-hit != 'true' | ||
|
@@ -69,8 +73,11 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: TEST_KUBECONFIG=$KUBECONFIG TEST_WAIT_TIMEOUT=110 mix coveralls.github --timeout 120000 --include integration --max-failures 1 | ||
|
||
- name: Run dialyzer | ||
# Create PLTs if no cache was found | ||
- name: Create PLTs | ||
if: steps.plt-cache.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p priv/plts | ||
mix dialyzer | ||
- name: Run dialyzer | ||
run: mix dialyzer --format github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,31 +12,49 @@ jobs: | |
strategy: | ||
matrix: | ||
# See https://hexdocs.pm/elixir/1.13/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp | ||
otp: [22.x, 23.x, 24.x] | ||
elixir: [1.11.x, 1.12.x, 1.13.x] | ||
include: | ||
- otp: 22.x | ||
elixir: 1.10.x | ||
- otp: 23.x | ||
elixir: 1.10.x | ||
- otp: 22.x | ||
elixir: 1.9.x | ||
otp: ["22.x", "23.x", "24.x", "25.x"] | ||
elixir: ["1.10.x", "1.11.x", "1.12.x", "1.13.x", "1.14.x"] | ||
exclude: | ||
# OTP 22 | ||
- elixir: "1.14.x" | ||
otp: "22.x" | ||
# OTP 23 | ||
- elixir: "1.10.x" | ||
otp: "23.x" | ||
# OTP 24 | ||
- elixir: "1.10.x" | ||
otp: "24.x" | ||
- elixir: "1.11.x" | ||
otp: "24.x" | ||
# OTP 25 | ||
- elixir: "1.10.x" | ||
otp: "25.x" | ||
- elixir: "1.11.x" | ||
otp: "25.x" | ||
- elixir: "1.12.x" | ||
otp: "25.x" | ||
- elixir: "1.13.x" | ||
otp: "25.x" | ||
include: | ||
- elixir: "1.13.4" | ||
otp: "25.x" | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{matrix.otp}} | ||
elixir-version: ${{matrix.elixir}} | ||
|
||
- name: Retrieve Build Cache | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
id: build-folder-cache | ||
with: | ||
path: _build | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
|
||
- name: Retrieve Mix Dependencies Cache | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
id: mix-cache | ||
with: | ||
path: deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ jobs: | |
strategy: | ||
matrix: | ||
k8s_version: [v1.21.9-k3s1, v1.22.6-k3s1, latest] | ||
otp: [24.2] # with 24.3.0 hackney returns :checkout_failure | ||
elixir: [1.13.x] | ||
otp: [25.x] # with 24.3.0 hackney returns :checkout_failure | ||
elixir: [1.14.x] | ||
steps: | ||
- uses: debianmaster/[email protected] | ||
id: k3s | ||
|
@@ -22,16 +22,16 @@ jobs: | |
with: | ||
otp-version: ${{matrix.otp}} | ||
elixir-version: ${{matrix.elixir}} | ||
|
||
- name: Retrieve Build Cache | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
id: build-folder-cache | ||
with: | ||
path: _build | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
|
||
- name: Retrieve Mix Dependencies Cache | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
id: mix-cache | ||
with: | ||
path: deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
erlang 24.2 | ||
elixir 1.13.1-otp-24 | ||
elixir 1.13.4-otp-24 |