Skip to content

Simplify build.

Simplify build. #219

Workflow file for this run

name: ci
on: [push]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Set up node
uses: actions/[email protected]
- name: Build - Install
run: npm i
- name: Build - Compile
run: npm run build
- name: Test - Start Compose
run: docker compose up -d
working-directory: tests/docker
- name: Test - RUN
env:
CONFIG__WAIT=60

Check failure on line 28 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 28, Col: 11): Unexpected value 'CONFIG__WAIT=60 CONFIG__SERVER__URL=http://localhost:8080'
CONFIG__SERVER__URL=http://localhost:8080
run: |
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/docker
- name: Publish to npm
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}