Skip to content

Test

Test #94

Workflow file for this run

name: CI
on: [pull_request]
jobs:
test-only-changed:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
INPUT_ONLY_CHANGED: 'true'
INPUT_USE_BUNDLER: 'false'
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
PATH="test/only_checked/few_relevant/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
PATH="test/only_checked/nothing_relevant/mock_bins:$PATH" \
BASE_REF=$(git rev-parse HEAD~) \
HEAD_REF=$(git rev-parse HEAD) \
./script.sh