Migrated to org.jung.ant-contrib #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |