workflow
This commit is contained in:
40
.github/workflows/main.yml
vendored
Normal file
40
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Build & Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- mauster
|
||||||
|
- developmaunt
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- mauster
|
||||||
|
- developmaunt
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: 'Branch to build'
|
||||||
|
required: true
|
||||||
|
default: 'developmaunt'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: mau
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@main
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Build
|
||||||
|
run: npm build
|
||||||
|
- name: Test
|
||||||
|
run: npm test --watch=false
|
||||||
Reference in New Issue
Block a user