update GA file #12
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 CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
ELIXIR_VERSION: 1.15.1 | |
ERLANG_VERSION: 26.0.1 | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Unit Test | |
steps: | |
# Step: Setup Elixir + Erlang image as the base. | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ env.ERLANG_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
# Step: Check out the code. | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Compiles without warnings | |
run: mix compile --warnings-as-errors | |
- name: Check Formatting | |
run: mix format --check-formatted | |
# Step: Execute the tests. | |
- name: Run tests | |
run: mix test |