Skip to content

Commit

Permalink
fix: ci setup job
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Jun 8, 2024
1 parent 8cca16d commit 48756b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
elixir: ['1.10', '1.11']
otp: [22, 23]
otp: ['22', '23']
env:
MIX_ENV: test
runs-on: ubuntu-latest
Expand All @@ -27,44 +27,47 @@ jobs:
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
version-type: 'strict'
- run: mix deps.get
- run: mix test

Format:
strategy:
matrix:
elixir: ['1.11']
otp: [23]
otp: ['23']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
version-type: 'strict'
- run: mix deps.get
- run: mix format --check-formatted

Credo:
strategy:
matrix:
elixir: ['1.11']
otp: [23]
otp: ['23']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
version-type: 'strict'
- run: mix deps.get
- run: mix credo

Dialyzer:
strategy:
matrix:
elixir: ['1.11']
otp: [23]
otp: ['23']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -85,5 +88,6 @@ jobs:
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
version-type: 'strict'
- run: mix deps.get
- run: mix dialyzer
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
hex-publish:
uses: straw-hat-team/github-actions-workflows/.github/workflows/elixir-hex-publish.yml@v0.1.1
uses: straw-hat-team/github-actions-workflows/.github/workflows/elixir-hex-publish.yml@v1.6.4
with:
elixir-version: '1.11'
otp-version: '22.3'
Expand Down

0 comments on commit 48756b7

Please sign in to comment.