-
-
Notifications
You must be signed in to change notification settings - Fork 532
49 lines (41 loc) · 1.32 KB
/
tests.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
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
tests:
runs-on: macos-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: true
cask: true
test-bot: false
- name: Set up Ruby
uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0
with:
bundler-cache: true
- name: Generate formulae, casks and API samples
run: /usr/bin/rake formulae casks api_samples
env:
HOMEBREW_DEVELOPER: 1
- name: Generate analytics
if: github.event.pull_request.head.repo.fork == false && (github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]')
run: |
brew tap Homebrew/formula-analytics
brew formula-analytics --install --json --days-ago=2
env:
HOMEBREW_INFLUXDB_TOKEN: ${{ secrets.HOMEBREW_INFLUXDB_READ_TOKEN }}
- name: Build site
run: bundle exec jekyll build
- name: Validate build
run: ./script/validate-build.rb