Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize actions #1051

Merged
merged 5 commits into from
Mar 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
Expand Down Expand Up @@ -34,26 +32,27 @@ jobs:
- name: Restore deps cache
uses: actions/cache@v2
with:
path: deps
key: deps-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
restore-keys: |
deps-${{ matrix.otp }}-${{ matrix.elixir }}
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}

- name: Restore _build cache
uses: actions/cache@v2
with:
path: _build
key: _build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
_build-${{ matrix.otp }}-${{ matrix.elixir }}
- name: Create dializer plts path
run: mkdir -p priv/plts

- name: Restore plts cache
uses: actions/cache@v2
with:
path: priv/plts
key: plts-${{ matrix.otp }}-${{ matrix.elixir }}
key: plts-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
restore-keys: |
plts-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
plts-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}

- name: Install deps
- name: Install package dependencies
run: mix deps.get

- name: Check Formatting
Expand All @@ -72,6 +71,4 @@ jobs:
SCHEMA_PROVIDER: persistent_term

- name: Run dialyzer
run: |
mkdir -p priv/plts
MIX_ENV=test mix dialyzer
run: mix dialyzer
3 changes: 3 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ defmodule Absinthe.Mixfile do
start_permanent: Mix.env() == :prod,
package: package(),
source_url: @source_url,
preferred_cli_env: [
dialyzer: :test
],
docs: [
source_ref: "v#{@version}",
main: "overview",
Expand Down