Bump ex_doc from 0.34.2 to 0.35.1 #73
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: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build and Test OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
otp: [23, 24, 25] | |
elixir: [1.14] | |
env: | |
MIX_ENV: test | |
ImageOS: ubuntu20 # equivalent to runs-on ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{matrix.elixir}} # Define the elixir version [required] | |
otp-version: ${{matrix.otp}} # Define the OTP version [required] | |
- uses: actions/cache@v1 | |
id: deps-cache | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
- uses: actions/cache@v1 | |
id: build-cache | |
with: | |
path: _build | |
key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
- name: Create Nats cluster | |
uses: onichandame/nats-action@0.0.0 | |
with: | |
port: "4222" # multiple different ports will start a cluster. single port will start a single server | |
- name: test connection to cluster | |
uses: onichandame/nats-client-action@0.0.0 | |
with: | |
servers: "nats://localhost:4222" | |
cluster: "true" | |
- name: Install deps | |
run: mix deps.get | |
- name: Run tests | |
run: mix test | |
- run: mix format --check-formatted |