mirror of
https://gitea.com/gitea/homebrew-gitea.git
synced 2024-06-02 10:11:26 +05:30
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
name: test
|
|
|
|
on:
|
|
- pull_request
|
|
- push
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
brew_version: ["3.6.14", "latest"]
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: homebrew/brew:${{ matrix.brew_version }}
|
|
env:
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
steps:
|
|
- name: install node
|
|
# to use actions/checkout
|
|
run: |
|
|
brew install node
|
|
node --version
|
|
- uses: actions/checkout@v3
|
|
- name: test install
|
|
run: |
|
|
brew tap gitea/gitea "${PWD}"
|
|
brew install gitea/gitea/tea
|
|
tea --version
|
|
brew install gitea/gitea/gitea
|
|
gitea --version
|
|
test_arm:
|
|
runs-on: arm-ubuntu-latest
|
|
container:
|
|
# the arm image hasn't been updated for years, maybe we should find a better way to test arm or just remove it
|
|
image: markkrj/homebrew-arm:latest
|
|
env:
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
steps:
|
|
- name: install node
|
|
# install node to use actions/checkout, but
|
|
# Warning: Your CPU architecture (arm64) is not supported. We only support
|
|
# x86_64 CPU architectures. You will be unable to use binary packages (bottles).
|
|
# You will encounter build failures with some formulae.
|
|
# Please create pull requests instead of asking for help on Homebrew's GitHub,
|
|
# Twitter or any other official channels. You are responsible for resolving
|
|
# any issues you experience while you are running this
|
|
# unsupported configuration.
|
|
# Error: node: no bottle available!
|
|
# You can try to install from source with:
|
|
# brew install --build-from-source node
|
|
# Please note building from source is unsupported. You will encounter build
|
|
# failures with some formulae. If you experience any issues please create pull
|
|
# requests instead of asking for help on Homebrew's GitHub, Twitter or any other
|
|
# official channels.
|
|
run: |
|
|
brew install --build-from-source node
|
|
node --version
|
|
- uses: actions/checkout@v3
|
|
- name: test install
|
|
run: |
|
|
brew tap gitea/gitea "${PWD}"
|
|
brew install gitea/gitea/tea
|
|
tea --version
|
|
brew install gitea/gitea/gitea
|
|
gitea --version
|