Skip to content

Commit

Permalink
exlir: Enable release (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje authored Nov 13, 2024
1 parent 49464a5 commit 497ffa8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 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: '27.1'
elixir-version: '1.17'

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

- uses: cucumber/[email protected]
with:
hex-api-key: ${{ secrets.HEX_API_KEY }}
working-directory: 'elixir'
24 changes: 7 additions & 17 deletions .github/workflows/test-elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,22 @@ on:
workflow_call:

jobs:
tests:
name: Run Tests
test-elixir:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- otp: '26.0'
elixir: '1.15'
- otp: '27.1'
elixir: '1.17'
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get
otp-version: '27.1'
elixir-version: '1.17'
- run: |
mix deps.get
working-directory: elixir
- run: mix test
working-directory: elixir

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

0 comments on commit 497ffa8

Please sign in to comment.