mirror of
https://github.com/pi-hole/docs.git
synced 2026-04-17 15:43:16 +01:00
Update ci.yml
* run it for PRs and master branch only * use double quotes
This commit is contained in:
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -1,11 +1,17 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- "**"
|
||||
|
||||
env:
|
||||
CI: true
|
||||
NODE: 12.x
|
||||
PYTHON_VERSION: '3.7'
|
||||
|
||||
on: [push, pull_request]
|
||||
PYTHON_VERSION: "3.7"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -18,15 +24,15 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '${{ env.PYTHON_VERSION }}'
|
||||
architecture: 'x64'
|
||||
python-version: "${{ env.PYTHON_VERSION }}"
|
||||
architecture: "x64"
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "${{ env.NODE }}"
|
||||
|
||||
- name: Cache dependencies
|
||||
- name: Cache Python dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
|
||||
Reference in New Issue
Block a user