Skip to content

Detect compositions of {Naive}DateTime.utc_now and {Naive}DateTime.truncate #261

Detect compositions of {Naive}DateTime.utc_now and {Naive}DateTime.truncate

Detect compositions of {Naive}DateTime.utc_now and {Naive}DateTime.truncate #261

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@v2.3.1
- 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) }}"