Skip to content

Commit

Permalink
elixir: Upgrade OTP
Browse files Browse the repository at this point in the history
The builds now run on Ubuntu 22.04. This means that OTP 22.2 is no longer available.

See:

https://github.com/erlef/setup-beam#compatibility-between-operating-system-and-erlangotp
  • Loading branch information
mpkorstanje committed Dec 17, 2022
1 parent 54ad48b commit b12666e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-hex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release Elixir hex package

on:
push:
branches: [release/*]

jobs:
create-hex-release:
name: Publish to hex.pm
runs-on: ubuntu-latest
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: '22.2'
elixir-version: '1.10.x'

- name: Install Protoc
uses: arduino/setup-protoc@v1

- uses: cucumber/action-publish-hex@v1.0.0
with:
hex-api-key: ${{ secrets.HEX_API_KEY }}
working-directory: 'elixir'
34 changes: 34 additions & 0 deletions .github/workflows/test-elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test-elixir

on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
workflow_call:

jobs:
test-elixir:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: '25'
elixir-version: '1.10.x'

- run: |
mix local.hex --force
mix deps.get
working-directory: elixir
- run: mix test
working-directory: elixir

- name: run acceptance tests
run: make acceptance
working-directory: elixir

0 comments on commit b12666e

Please sign in to comment.