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

Github actions maintenance (version updates) #175

Merged
merged 1 commit into from
Aug 20, 2022
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
27 changes: 17 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand All @@ -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
42 changes: 30 additions & 12 deletions .github/workflows/elixir_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/k8s_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
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