48 lines (39 loc) · 1.27 KB
/
daily-bundler.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
39
40
41
42
43
44
45
46
47
48
name: daily-bundler
on:
schedule:
- cron: '0 0 * * *'
jobs:
daily_bundler:
runs-on: ubuntu-18.04
if: github.repository == 'rubygems/rubygems'
env:
RGV: ..
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-head
bundler: none
- name: Show Ruby version
run: ruby --version
- name: Prepare dependencies
run: |
sudo apt-get install graphviz -y
bin/rake spec:parallel_deps
working-directory: ./bundler
- name: Run Test
run: |
bin/rake spec:all
working-directory: ./bundler
- name: Get previous status
if: always()
run: echo "OLD_STATUS=$(curl -sS 'https://api.github.com/repos/rubygems/rubygems/actions/workflows/daily-bundler.yml/runs?event=schedule&branch=master' | jq '.workflow_runs | .[1].conclusion')" >> $GITHUB_ENV
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: failure() && env.OLD_STATUS == '"success"'
timeout-minutes: 60