mirror of
https://github.com/iptv-org/api.git
synced 2025-05-12 01:50:06 -04:00
Create check.yml
This commit is contained in:
parent
82128fac56
commit
7cd81bfed3
1 changed files with 19 additions and 0 deletions
19
.github/workflows/check.yml
vendored
Normal file
19
.github/workflows/check.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: check
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, edited]
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- id: files
|
||||||
|
uses: tj-actions/changed-files@v12.2
|
||||||
|
with:
|
||||||
|
files: \.csv$
|
||||||
|
- name: validate
|
||||||
|
if: steps.files.outputs.any_changed == 'true'
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}
|
Loading…
Add table
Add a link
Reference in a new issue