Fix few README text issues #213
Workflow file for this run
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Compile and Test | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
mongodb-version: ["5.0", "6.0"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
mongodb-replica-set: rs_1 | |
- name: Read .tool-versions | |
uses: marocchino/tool-versions-action@v1 | |
id: versions | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{steps.versions.outputs.elixir}} | |
otp-version: ${{ steps.versions.outputs.erlang}} | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
priv/plts | |
key: ${{ runner.os }}-mix-v1-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix-v1- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run tests | |
run: mix test --exclude ssl --exclude socket --exclude rs_required | |
- name: Run Credo | |
run: mix credo | |
- name: Check Formatting | |
run: mix format --check-formatted | |
if: always() |