Skip to content

Commit 3eaeae8

Browse files
Only run CI for master/develop branches
Make diff exit with code properly
1 parent 40b349d commit 3eaeae8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/redcode-ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
on:
22
push:
3+
branches:
4+
- master
5+
- develop
36
paths:
4-
- "redcode/**"
7+
- redcode/**
58
pull_request:
9+
branches:
10+
- master
11+
- develop
612
paths:
7-
- "redcode/**"
13+
- redcode/**
814

915
defaults:
1016
run:
@@ -14,7 +20,10 @@ jobs:
1420
build:
1521
strategy:
1622
matrix:
17-
os: [macos-latest, ubuntu-latest, windows-latest]
23+
os:
24+
- macos-latest
25+
- ubuntu-latest
26+
- windows-latest
1827
runs-on: ${{ matrix.os }}
1928
steps:
2029
- name: Checkout branch
@@ -28,4 +37,4 @@ jobs:
2837
- name: Build extension
2938
run: npm run build
3039
- name: Verify the build did not modify any files
31-
run: git diff-index HEAD -- .
40+
run: git diff --exit-code HEAD -- .

0 commit comments

Comments
 (0)