-
Notifications
You must be signed in to change notification settings - Fork 19
31 lines (31 loc) · 925 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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