-
Notifications
You must be signed in to change notification settings - Fork 12
68 lines (66 loc) · 2.28 KB
/
Copy pathbuild.yml
File metadata and controls
68 lines (66 loc) · 2.28 KB
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
58
59
60
61
62
63
64
65
66
67
68
name: build
on:
push:
branches: [main]
pull_request: ~
workflow_dispatch: ~
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: justintime50/composite-actions/bootstrap-python@v1
with:
python-version: '3.14'
- run: just install lint
test:
runs-on: ubuntu-latest
steps:
- uses: justintime50/composite-actions/bootstrap-python@v1
with:
python-version: '3.14'
- run: just install coverage
brew-audit:
runs-on: ubuntu-latest
steps:
- uses: justintime50/composite-actions/bootstrap-python@v1
with:
python-version: '3.14'
- uses: Homebrew/actions/setup-homebrew@master
# These Homebrew packages are needed since we have them as fake dependencies for some test output
- name: Setup required Homebrew packages
run: brew install bash gcc
- name: Run brew audit on generated test formula
run: just audit
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build and run Docker image
run: |
docker build . -t justintime50/homebrew-releaser
docker run --workdir /github/workspace \
-e INPUT_DEBUG=true \
-e GITHUB_REPOSITORY=justintime50/github-actions-test \
-e INPUT_HOMEBREW_OWNER=justintime50 \
-e INPUT_HOMEBREW_TAP=homebrew-test \
-e INPUT_GITHUB_TOKEN=${{ secrets.HOMEBREW_GITHUB_TOKEN }} \
-e INPUT_COMMIT_OWNER=justintime50 \
-e INPUT_COMMIT_EMAIL=39606064+Justintime50@users.noreply.github.com \
-e INPUT_INSTALL=virtualenv_install_with_resources \
-e INPUT_UPDATE_README_TABLE=true \
-e INPUT_FORMULA_INCLUDES="include Language::Python::Virtualenv" \
-e INPUT_DEPENDS_ON='"python@3.14"' \
-e INPUT_UPDATE_PYTHON_RESOURCES=true \
-e INPUT_SKIP_CHECKSUM=true \
justintime50/homebrew-releaser
coverage:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: justintime50/composite-actions/bootstrap-python@v1
with:
python-version: '3.14'
- run: just install coverage
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}