Skip to content

Commit 8c7324d

Browse files
committed
Optimize GitHub CI workflow.
1 parent 6d2f2a2 commit 8c7324d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
# Run every on Friday to ensure everything works as expected.
7+
- cron: '0 6 * * 5'
38
jobs:
49
CI:
510
runs-on: ubuntu-20.04
@@ -23,7 +28,7 @@ jobs:
2328
- name: Set up Zammad
2429
shell: bash
2530
run: |
26-
git clone https://github.com/zammad/zammad.git
31+
git clone --depth 1 https://github.com/zammad/zammad.git
2732
cd zammad
2833
source /etc/profile.d/rvm.sh # ensure RVM is loaded
2934
bundle config set --local frozen 'true'

0 commit comments

Comments
 (0)