ci: remove GitHub action dependencies from Gitea workflows
Build & Deploy / Build & Push Docker Image (push) Failing after 3m14s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / Type Check (all packages) (push) Failing after 10s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
Build & Deploy / Build & Push Docker Image (push) Failing after 3m14s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / Type Check (all packages) (push) Failing after 10s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
This commit is contained in:
+147
-28
@@ -24,10 +24,27 @@ jobs:
|
||||
name: Type Check (all packages)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -62,10 +79,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: type-check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -100,10 +134,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: type-check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -138,10 +189,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: type-check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -176,10 +244,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: type-check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -213,10 +298,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: type-check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -277,10 +379,27 @@ jobs:
|
||||
JWT_EXPIRY: 8h
|
||||
FILE_STORAGE_ROOT: /tmp/rentaldrivego-test-storage
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- name: Check out repository
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
|
||||
REPOSITORY_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
git init .
|
||||
git remote add origin "$REPOSITORY_URL"
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
AUTH_HEADER="$(printf '%s:%s' "${{ gitea.actor }}" "${{ secrets.GITHUB_TOKEN }}" | base64 | tr -d '\n')"
|
||||
git -c http.extraheader="Authorization: Basic ${AUTH_HEADER}" fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
else
|
||||
git fetch --depth 1 origin "${{ gitea.ref }}"
|
||||
fi
|
||||
git checkout --detach "${{ gitea.sha }}" || git checkout --detach FETCH_HEAD
|
||||
fi
|
||||
- name: Check Node runtime
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
- run: corepack enable && corepack prepare npm@10.5.0 --activate
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user