kopia lustrzana https://github.com/fediversespace/fediverse.space
39 wiersze
643 B
YAML
39 wiersze
643 B
YAML
test-frontend:
|
|
image: node:lts-alpine
|
|
stage: test
|
|
before_script:
|
|
- cd frontend
|
|
stage: test
|
|
script:
|
|
- npm install
|
|
- npm run lint
|
|
cache:
|
|
paths:
|
|
- frontend/node_modules/
|
|
- .npm/
|
|
only:
|
|
changes:
|
|
- frontend/**/*
|
|
|
|
test-backend:
|
|
stage: test
|
|
image: elixir:1.14
|
|
variables:
|
|
MIX_ENV: test
|
|
only:
|
|
changes:
|
|
- backend/**/*
|
|
before_script:
|
|
- cd backend
|
|
script:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix deps.get
|
|
- mix deps.compile
|
|
- mix credo --strict
|
|
- mix sobelow --config
|
|
cache:
|
|
paths:
|
|
- backend/deps/
|
|
- backend/_build/
|