Changed the actions used in GHA #3
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
name: Elixir Test and format | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: "25.x" | |
elixir-version: "1.16.x" | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run tests | |
run: mix test | |
- name: Check code formatting | |
run: mix format --check-formatted |