Skip to content

Commit

Permalink
build via github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilt committed Mar 21, 2021
1 parent b16a4d2 commit 640abc4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: vscroll build

on:
push:
branches:
- "**"
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
cause:
description: 'Reason'
required: true
default: 'Manual triggering'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Dispatched?
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "This is dispatched"
echo "Build reason: ${{ github.event.inputs.cause }}"
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm test
- run: npm run build
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"watch": "jest --watch",
"build": "node build",
"test": "npm run lint && npm run jest",
"prepare": "npm run test && npm run build"
"prepublishOnly": "npm run test && npm run build"
},
"dependencies": {
"tslib": "^2.1.0"
Expand Down

0 comments on commit 640abc4

Please sign in to comment.