mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 13:47:20 +00:00
Test pull request diff (#378)
* Test pull request diff * Update test.yml * Update test.yml * Update test.yml * Update test.yml
This commit is contained in:
parent
8cb0f24d1b
commit
1663a841cf
1 changed files with 32 additions and 0 deletions
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
|
@ -20,6 +20,38 @@ jobs:
|
|||
- name: shellcheck
|
||||
uses: reviewdog/action-shellcheck@v1.14
|
||||
|
||||
test-pull-requests-diff:
|
||||
name: Test changed-files diff on pull_requests
|
||||
runs-on: ${{ matrix.platform }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Show github context
|
||||
run: |
|
||||
echo '${{ toJSON(github) }}'
|
||||
shell:
|
||||
bash
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: ./
|
||||
with:
|
||||
base_sha: ${{ github.event.pull_request.base.sha }}
|
||||
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-multiple-repositories:
|
||||
name: Test with multiple repositories
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
|
Loading…
Reference in a new issue