Skip to content

Commit

Permalink
Merge pull request #4 from straw-hat-team/fix-workflow
Browse files Browse the repository at this point in the history
fix: setup-beam breaking change
  • Loading branch information
yordis authored Nov 29, 2022
2 parents cf1dacb + 54956a4 commit 5aa7980
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/elixir-hex-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
elixir-version: '1.11' # optional, fallback to use .tool-versions
otp-version: '22.3' # optional, fallback to use .tool-versions
version-type: 'loose' # optional, fallback to strict
secrets:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
```
8 changes: 7 additions & 1 deletion .github/workflows/elixir-hex-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
description: The Erlang version. It fallback to .tool-versions if not specified
type: string
required: false
version-type:
description: The versioning type check, either strict or loose
type: string
required: false
default: strict
secrets:
HEX_API_KEY:
description: The hex.pm API key
Expand All @@ -20,8 +25,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: straw-hat-team/github-actions-workflows/elixir/publish@v1.3.0
- uses: straw-hat-team/github-actions-workflows/elixir/publish@v1.6.2
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}
hex-api-key: ${{ secrets.HEX_API_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/elixir-quality-assurance.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
with:
elixir-version: '1.11' # optional, fallback to use .tool-versions
otp-version: '22.3' # optional, fallback to use .tool-versions
version-type: 'loose' # optional, fallback to strict
testing-enabled: true # or false to disable it
formatter-enabled: true
credo-enabled: true
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/elixir-quality-assurance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
description: The Erlang version. It fallback to .tool-versions if not specified
type: string
required: false
version-type:
description: The versioning type check, either strict or loose
type: string
required: false
default: strict
testing-enabled:
description: Enables the testing job
type: boolean
Expand Down Expand Up @@ -43,10 +48,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: straw-hat-team/github-actions-workflows/elixir/compilation-warnings@v1.5.0
- uses: straw-hat-team/github-actions-workflows/elixir/compilation-warnings@v1.6.2
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}

test:
name: Test
Expand All @@ -55,40 +61,44 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: straw-hat-team/github-actions-workflows/elixir/test@v1.3.0
- uses: straw-hat-team/github-actions-workflows/elixir/test@v1.6.2
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}

format:
name: Format
if: ${{ inputs.formatter-enabled }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: straw-hat-team/github-actions-workflows/elixir/format@v1.3.0
- uses: straw-hat-team/github-actions-workflows/elixir/format@v1.6.2
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}

credo:
name: Credo
if: ${{ inputs.credo-enabled }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: straw-hat-team/github-actions-workflows/elixir/credo@v1.3.0
- uses: straw-hat-team/github-actions-workflows/elixir/credo@v1.6.2
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}

dialyzer:
name: Dialyzer
if: ${{ inputs.dialyzer-enabled }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: straw-hat-team/github-actions-workflows/elixir/dialyzer@v1.3.0
- uses: straw-hat-team/github-actions-workflows/elixir/dialyzer@v1.6.2
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}

0 comments on commit 5aa7980

Please sign in to comment.