mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2025-11-10 20:36:54 +00:00
Compare commits
2 commits
a91ae74f37
...
854ee4ce4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
854ee4ce4f | ||
|
|
067e18fae2 |
2 changed files with 5 additions and 6 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
on: [ pull_request, push ]
|
on: [ pull_request, push ]
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
tag: [lts, lts-alpine]
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: "node:${{ matrix.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -193,14 +193,8 @@ setup_api() {
|
||||||
|
|
||||||
if command -v apt-get >/dev/null 2>&1; then
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
apt-get -qq update && apt-get install -y -qq jq curl
|
apt-get -qq update && apt-get install -y -qq jq curl
|
||||||
elif command -v dnf >/dev/null 2>&1; then
|
|
||||||
dnf -y install jq curl
|
|
||||||
elif command -v yum >/dev/null 2>&1; then
|
|
||||||
yum -y install jq curl
|
|
||||||
elif command -v apk >/dev/null 2>&1; then
|
elif command -v apk >/dev/null 2>&1; then
|
||||||
apk add --no-cache jq curl
|
apk add --no-cache jq curl
|
||||||
elif command -v zypper >/dev/null 2>&1; then
|
|
||||||
zypper --non-interactive install jq curl
|
|
||||||
else
|
else
|
||||||
echo "No supported package manager found. Please install jq and curl manually." >&2
|
echo "No supported package manager found. Please install jq and curl manually." >&2
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue