Skip to content

config: add cache to CI #31

config: add cache to CI

config: add cache to CI #31

Workflow file for this run

name: test
on:
push:

Check failure on line 4 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
branches: [main]
pull_request:
env:
MIX_ENV: test
jobs:
deps:
name: Restore Cached deps
runs-on: ubuntu-latest
steps:
- id: mix-deps-restore
uses: actions/cache/restore@v3
with:
key: mix-deps
path: |
_build
deps
test:
name: Run tests
runs-on: ubuntu-latest
needs:
- deps
needs:
- deps
- lint
strategy:
matrix:
elixir: [1.15.7]
otp: [26.1.2]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- run: mix test