Skip to content

Commit e5eadff

Browse files
committed
Build via github actions
1 parent d19d4ec commit e5eadff

File tree

2 files changed

+38
-28
lines changed

2 files changed

+38
-28
lines changed

Diff for: .github/workflows/build.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ui-scroll build
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
branches: [ master ]
9+
workflow_dispatch:
10+
inputs:
11+
cause:
12+
description: 'Reason'
13+
required: true
14+
default: 'Manual triggering'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
node-version: [18.x]
22+
steps:
23+
- name: Dispatched?
24+
if: ${{ github.event_name == 'workflow_dispatch' }}
25+
run: |
26+
echo "This is dispatched"
27+
echo "Build reason: ${{ github.event.inputs.cause }}"
28+
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
37+
- run: npm ci
38+
- run: npm test

Diff for: .travis.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)