mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Create _test.yml
This commit is contained in:
parent
4112cdb378
commit
1ca1175492
1 changed files with 29 additions and 0 deletions
29
.github/workflows/_test.yml
vendored
Normal file
29
.github/workflows/_test.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: _test
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, edited]
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- uses: tj-actions/changed-files@v19
|
||||
id: files
|
||||
with:
|
||||
files: sites/**/*.config.js
|
||||
- uses: actions/setup-node@v2
|
||||
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
||||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
- name: test
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
run: |
|
||||
npm install
|
||||
npm test
|
Loading…
Add table
Add a link
Reference in a new issue