-
Notifications
You must be signed in to change notification settings - Fork 420
38 lines (31 loc) · 1.02 KB
/
bugfix-reproducer.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
32
33
34
35
36
37
38
name: "Reproducing Test-Case Detector (experimental)"
on:
pull_request:
paths:
- '**_test.exs'
jobs:
test:
runs-on: ubuntu-18.04
name: "Test for lib/ changes"
strategy:
matrix:
otp: [22.2]
elixir: [1.10.4]
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: git fetch origin master:master
- name: Check changes to lib/
id: check_changes
run: echo "::set-output name=changes_to_lib::$(git diff --name-only master | grep "^lib")"
- name: There are changes to lib/
if: "contains(steps.check_changes.outputs.changes_to_lib, 'lib')"
run: |
mix deps.get
sh test/test_if_tests_fail_after_resetting_lib.sh
- name: There are no changes to lib/
if: "!contains(steps.check_changes.outputs.changes_to_lib, 'lib')"
run: echo "${{ toJSON(steps.check_changes.outputs.changes_to_lib) }}"