-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
54ad48b
commit b12666e
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |