mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 05:26:19 +00:00
* remove unneeded `CI` env var; it's already set by the runner * specify `FORCE_COLOR: 2` * update to the latest `actions/setup-node` * cache npm * update to Node.js 14 Signed-off-by: XhmikosR <xhmikosr@gmail.com>
35 lines
506 B
YAML
35 lines
506 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- devel
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
|
|
env:
|
|
FORCE_COLOR: 2
|
|
|
|
jobs:
|
|
run:
|
|
name: Node
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "14.x"
|
|
cache: npm
|
|
|
|
- name: Install npm dependencies
|
|
run: npm ci
|
|
|
|
- name: Run tests
|
|
run: npm test
|