This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/.github/workflows/ci.yml

62 lines
1.4 KiB
YAML
Raw Normal View History

name: CI
on:
pull_request:
push:
branches: master
jobs:
tests:
runs-on: ubuntu-latest
name: Test (${{matrix.elixir}}/${{matrix.otp}})
strategy:
matrix:
otp: [21.x]
2020-04-09 02:58:01 +00:00
elixir: [1.7.x, 1.8.x, 1.9.x, 1.10.x]
steps:
2020-04-09 02:58:01 +00:00
- uses: actions/checkout@v2
2020-04-09 03:11:28 +00:00
- uses: actions/setup-elixir@v1.2.0
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache@v1
id: cache
with:
path: deps
2020-04-09 02:58:01 +00:00
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Run Tests
run: mix test
formatter:
runs-on: ubuntu-latest
2020-04-09 02:58:01 +00:00
name: Formatter (1.10.x/21.x)
steps:
2020-04-09 02:58:01 +00:00
- uses: actions/checkout@v2
2020-04-09 03:11:28 +00:00
- uses: actions/setup-elixir@v1.2.0
with:
otp-version: 21.x
2020-04-09 02:58:01 +00:00
elixir-version: 1.10.x
- uses: actions/cache@v1
id: cache
with:
path: deps
2020-04-09 02:58:01 +00:00
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Run Formatter
run: mix format --check-formatted