ma imgd
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Successful in 10s
checks / Set up Java for Backend Tests and Build (push) Failing after 13s
Gitea Actions Demo / Explore-Gitea-Actions-2 (pull_request) Successful in 3s
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Successful in 10s
checks / Set up Java for Backend Tests and Build (pull_request) Failing after 13s
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Successful in 10s
checks / Set up Java for Backend Tests and Build (push) Failing after 13s
Gitea Actions Demo / Explore-Gitea-Actions-2 (pull_request) Successful in 3s
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Successful in 10s
checks / Set up Java for Backend Tests and Build (pull_request) Failing after 13s
This commit is contained in:
@ -84,33 +84,10 @@ jobs:
|
|||||||
backend-jobs:
|
backend-jobs:
|
||||||
name: Set up Java for Backend Tests and Build
|
name: Set up Java for Backend Tests and Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
#container:
|
||||||
image: eclipse-temurin:21-jdk
|
#image: eclipse-temurin:21-jdk
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Detect act environment
|
|
||||||
id: detect-act
|
|
||||||
run: |
|
|
||||||
if command -v act >/dev/null 2>&1; then
|
|
||||||
echo "Running inside act"
|
|
||||||
echo "ACT=true" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "ACT=false" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Install dependencies (for both GitHub and act)
|
|
||||||
run: |
|
|
||||||
if [ "$ACT" = "true" ]; then
|
|
||||||
echo "Installing dependencies for act..."
|
|
||||||
if ! command -v sudo >/dev/null 2>&1; then
|
|
||||||
apt-get update && apt-get install -y sudo
|
|
||||||
fi
|
|
||||||
sudo apt-get update && sudo apt-get install -y curl build-essential
|
|
||||||
else
|
|
||||||
echo "Installing dependencies for GitHub Actions..."
|
|
||||||
sudo apt-get update -qq
|
|
||||||
sudo apt-get install -y curl build-essential
|
|
||||||
fi
|
|
||||||
# Checkout repository
|
# Checkout repository
|
||||||
- name: Checkout repository manually
|
- name: Checkout repository manually
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user