Skip to content

wip

wip #2

Workflow file for this run

name: Test
on:
push:
branches:
- main
- ci # TODO
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
if: github.repository_owner == 'Apicurio'
steps:
- name: Set up npm
uses: actions/setup-node@v4
with:
node-version: 18
- name: Run Registry
run: |
echo "REGISTRY_CID=$(docker run -d -p 8080:8080 apicurio/apicurio-registry-mem:2.5.x-snapshot)" >> "$GITHUB_ENV"
- name: Checkout
uses: actions/checkout@v3
- name: Dependencies
run: |
npm install
- name: Compile
run: |
npm run compile
- name: foo
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
echo "DISPLAY=':99.0'" >> "$GITHUB_ENV"
shell: bash
- name: Test
run: |
npm run test
- name: Stop Registry
run: |
docker stop "$REGISTRY_CID"
- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3