Add needs triage label to new issues (#353) #968
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgis/postgis | |
ports: ['5432:5432'] | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: '1.14.2' | |
otp-version: '25' | |
- name: Cache Elixir deps | |
id: elixir-deps-cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
**/deps | |
key: | | |
${{ runner.os }}-elixir-deps-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-elixir-deps- | |
- name: Cache Elixir build | |
id: elixir-build-cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
**/_build | |
key: | | |
${{ runner.os }}-elixir-build-${{ hashFiles('**/mix.lock') }}-${{ hashFiles( '**/lib/**/*.{ex,eex}', '**/config/*.exs', '**/mix.exs' ) }} | |
restore-keys: | | |
${{ runner.os }}-elixir-build-${{ hashFiles('**/mix.lock') }}- | |
${{ runner.os }}-elixir-build- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Compile | |
run: mix compile | |
- name: Install JS dependencies | |
run: npm install --prefix=assets | |
- name: Compile assets | |
run: mix assets.deploy | |
- name: Run tests | |
run: mix test |