Fix build error. #102
Workflow file for this run
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: test | |
concurrency: build | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare - Checkout | |
uses: actions/[email protected] | |
- name: Test - Start Compose | |
run: docker compose up -d | |
working-directory: tests | |
- name: Test - RUN | |
uses: kohlerdominik/[email protected] | |
with: | |
image: node | |
environment: | | |
CONFIG__WAIT=60 | |
CONFIG__SERVER__URL=http://localhost:8080 | |
default_network: host | |
options: --name test1 | |
volumes: ${{ github.workspace }}:/src | |
run: | | |
cd /src | |
npm install | |
npm test | |
- name: Test - Dump docker logs on failure | |
if: failure() | |
uses: jwalton/[email protected] | |
with: | |
images: 'squidex,squidex/resizer' | |
tail: '100' | |
- name: Test - Cleanup | |
if: always() | |
run: docker compose down | |
working-directory: tests |