-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.25 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
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- main
paths:
- "Formula/emacs.rb"
- ".github/workflows/tests.yml"
pull_request:
paths:
- "Formula/emacs.rb"
- ".github/workflows/tests.yml"
env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_GITHUB_ACTIONS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
concurrency:
group: "tests-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: true
test-bot: true
- run: brew test-bot --skip-dependents --build-from-source Formula/emacs.rb
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
build_opts:
- ""
- "--with-native-comp"
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Build emacs ${{ matrix.build_opts }}
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "1"
run: brew install Formula/emacs.rb ${{ matrix.build_opts }}
- name: Test installation
run: brew test Formula/emacs.rb