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

elixir: Upgrade OTP #72

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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