fix newlines #87
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: Pull Request Tests | |
on: | |
pull_request_target: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Docker build test | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: docker compose -p test_codebattles build | |
api-test: | |
name: API (Newman) test | |
runs-on: self-hosted | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Docker down | |
run: docker compose -p test_codebattles -f test-docker-compose.yml down | |
- name: Docker up | |
run: docker compose -p test_codebattles -f test-docker-compose.yml up -d | |
- name: Sleep for 30 seconds | |
uses: jakejarvis/wait-action@master | |
with: | |
time: '30s' | |
- uses: matt-ball/newman-action@master | |
with: | |
collection: tests/autotests.json | |
environment: tests/local_env.json | |
- name: Docker down | |
if: always() | |
run: docker compose -p test_codebattles -f test-docker-compose.yml down |