mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Actions: lint and build jobs
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user