mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
27 lines
597 B
YAML
27 lines
597 B
YAML
name: Philomena Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
_build
|
|
deps
|
|
key: ${{ runner.os }}-build-deps-${{ hashFiles('mix.lock') }}
|
|
|
|
- run: docker-compose pull
|
|
- run: docker-compose build
|
|
|
|
- name: Build and test
|
|
run: docker-compose run app run-test
|
|
|
|
- name: Security lint
|
|
run: |
|
|
docker-compose run app mix sobelow --config
|
|
docker-compose run app mix deps.audit
|