Skip to content

Commit

Permalink
ghaction: introduction and remove traevis
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <mabunixda@gmail.com>
  • Loading branch information
mabunixda committed Apr 16, 2020
1 parent 4efdf74 commit 96fa859
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: push
name: Build and Publish
jobs:
all:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Shell Linter
uses: azohra/shell-linter@v0.3.0
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Build
if: steps.cache-modules.outputs.cache-hit != 'true'
run: npm install
- name: install deps
run: npm install npm-check mocha eslint
- name: npm-check
run: ./node_modules/npm-check/bin/cli.js --skip-unused
- name: lint
run: ./scripts/lint.sh
- name: Test
run: npm test
- name: Publish
if: github.ref == 'refs/heads/master'
uses: mikeal/merge-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 96fa859

Please sign in to comment.