Validate with GitHub Action (#2184)

This commit is contained in:
HebaruSan 2020-12-14 09:37:32 -06:00 committed by GitHub
parent 4d50301a0d
commit f014cd4a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

34
.github/workflows/validate.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Validate ckans
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
Validate:
runs-on: ubuntu-latest
steps:
- name: Get CKAN-meta repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache downloads
uses: actions/cache@v2
with:
path: /cache
key: downloads-${{ github.run_id }}
restore-keys: |
downloads-
- name: Test modified ckans
uses: KSP-CKAN/xKAN-meta_testing@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
with:
source: commits
pull request body: ${{ github.event.pull_request.body }}