Skip to content

Commit

Permalink
Upgrade test workflow deps (#460)
Browse files Browse the repository at this point in the history
* Upgrade test workflow deps

* Tighten the cache key

* Run publish workflow on Ubuntu 24.04

* Include rust version in mix cache key to prevent rustler issues
  • Loading branch information
ku1ik authored Feb 6, 2025
1 parent 5b59477 commit db6a0de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
publish:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
packages: write
contents: read
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ on:
- main

env:
otp: '25.2.2'
elixir: '1.14.3'
otp: '26.2.5.7'
elixir: '1.18.2'
node: '18.x'
rust: '1.71.0'
rust: '1.83.0'

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand Down Expand Up @@ -60,9 +60,9 @@ jobs:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ env.elixir }}-${{ env.otp }}-${{ hashFiles('**/mix.lock') }}
key: ${{ runner.os }}-mix-${{ env.elixir }}-${{ env.otp }}-${ env.rust }-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ env.elixir }}-${{ env.otp }}-
${{ runner.os }}-mix-${{ env.elixir }}-${{ env.otp }}-${ env.rust }-
- name: Cache npm dependencies
uses: actions/cache@v3
with:
Expand All @@ -78,7 +78,7 @@ jobs:
~/.cargo
key: ${{ runner.os }}-rust-${{ env.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
${{ runner.os }}-rust-${{ env.rust }}-
- name: Install mix dependencies
run: mix deps.get
- name: Check formatting
Expand Down

0 comments on commit db6a0de

Please sign in to comment.