Skip to content

Commit

Permalink
fix: remove duplicated test action yml key
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeguimaraes committed Sep 8, 2024
1 parent 6e5474f commit be0d144
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,37 @@ name: Run Tests

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ['1.17.2', '1.16.3']
elixir: ['27.0']
otp: ["1.17.2", "1.16.3"]
elixir: ["27.0"]

steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test

0 comments on commit be0d144

Please sign in to comment.