-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.16 KB
/
test.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
49
50
51
52
name: Test Formulae Update
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test-formulae:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Specify the Ruby version you need
- name: Install dependencies
run: |
gem install nokogiri
gem install rubocop
gem install bundler-audit
bundle install
- name: Run RuboCop
run: |
rubocop
- name: Run Bundler Audit
run: |
bundle exec bundler-audit check --update
- name: Run update script
run: |
ruby update.rb
- name: Read update summary
id: read_summary
run: |
echo "UPDATE_SUMMARY<<EOF" >> $GITHUB_ENV
cat update_summary.txt >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Verify update summary
run: |
if [ ! -s update_summary.txt ]; then
echo "Update summary is empty"
exit 1
fi
echo "Update summary is set"