Revert "chore: Update CI workflow with versioning and publishing step… #8
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: "1.16.2" | |
otp-version: "26.2.5" | |
- name: Cache deps | |
uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Cache build | |
uses: actions/cache@v3 | |
with: | |
path: _build | |
key: ${{ runner.os }}-build-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-build- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Static analysis | |
run: mix credo --strict | |
- name: Run tests | |
run: mix test | |
- name: Check formatting | |
run: mix format --check-formatted |