Skip to content

Merge pull request #160 from dita-ot/feature/[email protected] #181

Merge pull request #160 from dita-ot/feature/[email protected]

Merge pull request #160 from dita-ot/feature/[email protected] #181

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: 'head'
- uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
ref: ${{ github.base_ref }}
path: 'base'
- uses: actions/setup-node@v2
with:
node-version: '14.16'
- name: Install
run: |
npm --prefix head/.github ci
- name: Show GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Test
run: |
node head/.github/validate.js
env:
HEAD_SHA: ${{ github.event.after }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
API_URL: https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files