ash/.github/workflows/elixir.yml

39 lines
1 KiB
YAML
Raw Normal View History

2020-06-02 13:21:49 +12:00
name: Elixir CI
on:
push:
2020-06-02 13:44:26 +12:00
branches: [master]
tags-ignore: ["v*"]
2020-06-02 13:21:49 +12:00
pull_request:
2020-06-02 13:44:26 +12:00
branches: [master]
create:
tags: ["v*"]
2020-06-02 13:21:49 +12:00
jobs:
build:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: [23"]
elixir: ["1.10.0"]
2020-06-02 13:21:49 +12:00
steps:
- run: sudo apt-get install --yes erlang-dev
2020-06-02 13:21:49 +12:00
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- uses: actions/cache@v1
id: cache-deps
with:
2020-06-02 14:09:16 +12:00
path: |
deps
_build
key: ${{matrix.otp}}-${{matrix.elixir}}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: ${{matrix.otp}}-${{matrix.elixir}}-
2020-06-02 13:21:49 +12:00
- run: mix deps.get
- run: mix check
- run: mix hex.user auth ash-project --key $HEX_API_KEY
if: startsWith(github.ref, 'refs/tags/v')