mirror of
https://github.com/pi-hole/web.git
synced 2026-03-01 06:08:34 +00:00
* only run the workflows for pushes to master and develop branches and for all PRs * remove moot `strategy` since we use one Node.js version Signed-off-by: XhmikosR <xhmikosr@gmail.com>
34 lines
503 B
YAML
34 lines
503 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- devel
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
|
|
env:
|
|
CI: true
|
|
|
|
jobs:
|
|
run:
|
|
name: Node ${{ matrix.node }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set Node.js version
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "12.x"
|
|
|
|
- name: Install npm dependencies
|
|
run: npm ci
|
|
|
|
- name: Run tests
|
|
run: npm test
|