ci: better names #5
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: "Test" | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Elixir cache | |
uses: actions/cache@v4 | |
with: | |
key: elixir-deps-${{ hashFiles('flake.lock') }}-${{ hashFiles('mix.lock') }} | |
restore-keys: elixir-deps-${{ hashFiles('flake.lock') }}- | |
path: | | |
deps/ | |
_build/ | |
- name: Install deps | |
run: nix develop --command mix deps.get | |
- name: Run tests | |
run: nix develop --command mix test |