diff --git a/.github/ci-config.json b/.github/ci-config.json new file mode 100644 index 0000000..fccc887 --- /dev/null +++ b/.github/ci-config.json @@ -0,0 +1,32 @@ +{ + "title": "pixel.horse CI", + "contactEmail": "noreply@pony.dev", + "port": 8090, + "adminPort": 8091, + "host": "http://localhost:8090/", + "local": "localhost:8090", + "adminLocal": "localhost:8091", + "secret": "pixel", + "token": "horse", + "db": "mongodb://pixel:horse@mongo:27017/pixelhorse", + "oauth": { + "google": { + "clientID": "snake", + "clientSecret": "oil" + } + }, + "assetsPath": "assets-source", + "servers": [ + { + "id": "ci", + "port": 8090, + "path": "/s00/ws", + "local": "localhost:8090", + "name": "CI test server", + "desc": "GitHub Actions checking in", + "flags": { + "test": false + } + } + ] +} diff --git a/.github/ci-install-gulp.sh b/.github/ci-install-gulp.sh new file mode 100644 index 0000000..2cd48fe --- /dev/null +++ b/.github/ci-install-gulp.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +mkdir "${HOME}/.npm" +npm config set prefix "${HOME}/.npm" +npm install -g gulp diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..34272fe --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,30 @@ +name: Push Checks +on: push + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - name: install gulp + run: bash .github/ci-install-gulp.sh + - run: npm ci + - name: write config.json + run: cp .github/ci-config.json config.json + - run: npm run lint + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - name: install gulp + run: bash .github/ci-install-gulp.sh + - run: npm ci + - name: write config.json + run: cp .github/ci-config.json config.json + - run: npm run build