2020-12-14 15:37:32 +00:00
|
|
|
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
|
2020-12-29 23:59:15 +00:00
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
2020-12-14 15:37:32 +00:00
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
2020-12-17 21:22:55 +00:00
|
|
|
path: .cache
|
2020-12-14 15:37:32 +00:00
|
|
|
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 }}
|
2021-03-21 18:20:04 +00:00
|
|
|
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
|
|
EVENT_BEFORE: ${{ github.event.before }}
|
2020-12-14 15:37:32 +00:00
|
|
|
with:
|
|
|
|
source: commits
|
|
|
|
pull request body: ${{ github.event.pull_request.body }}
|
2021-01-27 06:22:49 +00:00
|
|
|
- name: Chmod cached files so actions/cache can read them
|
|
|
|
run: sudo chmod -R a+r .cache
|