add github actions file

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-08-24 11:42:58 +09:30
parent e33a262e6a
commit ee4c198546

48
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installing node deps
run: npm install
- name: Linting
run: npm run lint
# Waiting on https://github.com/nektos/act/issues/74 and https://github.com/nektos/act/issues/76
# uses: stoe/xo-action@v1.0.1
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- name: Checkout repo
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installing node deps
run: npm install
- name: Packing release
run: npm pack
- name: Uploading release to Github
uses: JasonEtco/upload-to-release@master
with:
args: unraid-*.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_DEPLOY_KEY }}