mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-25 02:34:48 +00:00
32 lines
630 B
YAML
32 lines
630 B
YAML
name: Test
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- stg
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Docker Compose
|
|
run: |
|
|
python3 -m pip install docker-compose --upgrade
|
|
|
|
- name: Build
|
|
env:
|
|
ENV: ${{ steps.extract_environment.outputs.result }}
|
|
IMAGE_TAG: latest
|
|
run: |
|
|
export ENV=test
|
|
docker-compose -f build.docker-compose.yml build
|
|
#
|
|
- name: Run Test
|
|
run: |
|
|
export ENV=test
|
|
docker-compose run --rm maestro npm install && npm run test
|