Test #100
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: CI | |
on: [pull_request] | |
jobs: | |
test-only-changed: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
env: | |
INPUT_ONLY_CHANGED: 'true' | |
# rest is needed for reviewdog binary to not error with wrong arguments | |
INPUT_TOOL_NAME: rubocop | |
INPUT_REPORTER: github-pr-check | |
INPUT_FILTER_MODE: added | |
INPUT_FAIL_ON_ERROR: 'false' | |
INPUT_LEVEL: error | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup | |
run: | | |
git config user.email "workflow@github.com" | |
git config user.name "I am an automated workflow" | |
- name: Check when there are relevant files | |
run: | | |
git checkout ${{ github.sha }} | |
cp test/only_checked/few_relevant/files/* . | |
git add * | |
git commit -m auto | |
export PATH=test/only_checked/few_relevant/mock_bins:test/only_checked/shared_mock_bins:$PATH | |
BASE_REF=$(git rev-parse HEAD~) HEAD_REF=$(git rev-parse HEAD) ./script.sh | |
- name: Check when there are no relevant files | |
run: | | |
git checkout ${{ github.sha }} | |
cp test/only_checked/nothing_relevant/files/* . | |
git add * | |
git commit -m auto | |
export PATH=test/only_checked/nothing_relevant/mock_bins:test/only_checked/shared_mock_bins:$PATH | |
BASE_REF=$(git rev-parse HEAD~) HEAD_REF=$(git rev-parse HEAD) ./script.sh | |
- name: Check when there are too many relevant files | |
run: | | |
git checkout ${{ github.sha }} | |
touch a{00..99}.rb | |
git add * | |
git commit -m auto | |
export PATH=test/only_checked/too_many_relevant/mock_bins:test/only_checked/shared_mock_bins:$PATH | |
BASE_REF=$(git rev-parse HEAD~) HEAD_REF=$(git rev-parse HEAD) ./script.sh |