Merge pull request #90 from ponydevs/actions

Set up GitHub Actions 🎉
This commit is contained in:
Eliot Partridge
2019-09-07 23:26:48 -05:00
committed by GitHub
3 changed files with 66 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
{
"title": "pixel.horse CI",
"contactEmail": "[email protected]",
"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
}
}
]
}
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
mkdir "${HOME}/.npm"
npm config set prefix "${HOME}/.npm"
npm install -g gulp
+30
View File
@@ -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