Skip to content

Add CI

Add CI #1

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test
on:
push:
branches: [ "main" ]
pull_request:
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Elixir
uses:

Check failure on line 27 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 27, Col: 12): Unexpected value '' .github/workflows/ci.yml (Line: 28, Col: 7): 'uses' is already defined
uses: erlef/setup-beam@v1
with:
elixir-version: '1.16.1'
otp-version: '26.0'
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
- name: Format
run: mix format --check-formatted