mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-25 20:24:22 +01:00
Add github workflow
This commit is contained in:
28
.github/workflows/frontend.yml
vendored
Normal file
28
.github/workflows/frontend.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: frontend
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "html/*"
|
||||
pull_request:
|
||||
paths:
|
||||
- "html/*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-16.04
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [8.x, 10.x, 12.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: yarn install, check and build
|
||||
run: |
|
||||
cd html
|
||||
yarn install
|
||||
yarn run check
|
||||
yarn run build
|
||||
Reference in New Issue
Block a user