Skip to content

Commit

Permalink
[CI] Only run immutability check on PRs (#1730)
Browse files Browse the repository at this point in the history
Let's remove this until #1728 has been resolved properly to avoid build errors on master.
  • Loading branch information
SaschaMann authored Nov 4, 2020
1 parent d6f81fe commit 30011fe
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: CI

on:
pull_request:
push:
branches:
- master
workflow_dispatch:

jobs:
required-files:
Expand All @@ -26,21 +22,12 @@ jobs:
path: 'new'

# Pull Requests
- name: Checkout the target branch (PRs)
- name: Checkout the target branch
uses: actions/checkout@v2
if: github.event_name == 'pull_request'
with:
ref: '${{ github.base_ref }}'
path: 'old'

# Pushes
- name: Checkout the previous commit (Pushes)
uses: actions/checkout@v2
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
with:
ref: '${{ github.sha }}~'
path: 'old'


- name: Check that no test has been mutated
run: |
for oldf in old/exercises/*/canonical-data.json; do
Expand Down

0 comments on commit 30011fe

Please sign in to comment.