CI/CD
This commit is contained in:
@@ -18,21 +18,17 @@ jobs:
|
|||||||
name: Build, Lint & Test
|
name: Build, Lint & Test
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
container:
|
container:
|
||||||
image: mirror2.chabokan.net/ubuntu:22.04
|
image: mirror2.chabokan.net/ubuntu:24.04
|
||||||
options: --add-host gitea:172.17.0.1
|
options: --add-host gitea:172.17.0.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Ubuntu apt mirrors
|
- name: Setup Ubuntu apt mirrors
|
||||||
run: |
|
run: |
|
||||||
tee /etc/apt/sources.list > /dev/null <<'EOF'
|
tee /etc/apt/sources.list > /dev/null <<'EOF'
|
||||||
deb http://mirror.iranserver.com/ubuntu/ jammy main restricted universe multiverse
|
deb http://mirror.iranserver.com/ubuntu/ noble main restricted universe multiverse
|
||||||
deb http://mirror.iranserver.com/ubuntu/ jammy-updates main restricted universe multiverse
|
deb http://mirror.iranserver.com/ubuntu/ noble-updates main restricted universe multiverse
|
||||||
deb http://mirror.iranserver.com/ubuntu/ jammy-security main restricted universe multiverse
|
deb http://mirror.iranserver.com/ubuntu/ noble-security main restricted universe multiverse
|
||||||
deb http://mirror.iranserver.com/ubuntu/ jammy-backports main restricted universe multiverse
|
deb http://mirror.iranserver.com/ubuntu/ noble-backports main restricted universe multiverse
|
||||||
|
|
||||||
deb [trusted=yes] https://mirror2.chabokan.net/ubuntu focal main universe
|
|
||||||
deb [trusted=yes] https://mirror2.chabokan.net/ubuntu focal-updates main universe
|
|
||||||
deb [trusted=yes] https://mirror2.chabokan.net/ubuntu focal-security main universe
|
|
||||||
EOF
|
EOF
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
@@ -47,19 +43,12 @@ jobs:
|
|||||||
- name: Configure NPM Mirrors
|
- name: Configure NPM Mirrors
|
||||||
run: |
|
run: |
|
||||||
npm config set registry https://package-mirror.liara.ir/repository/npm/
|
npm config set registry https://package-mirror.liara.ir/repository/npm/
|
||||||
|
|
||||||
npm config set @runflare:registry https://mirror-npm.runflare.com/
|
npm config set @runflare:registry https://mirror-npm.runflare.com/
|
||||||
npm config set @chabokan:registry https://mirror2.chabokan.net/npm/
|
npm config set @chabokan:registry https://mirror2.chabokan.net/npm/
|
||||||
|
|
||||||
npm config set strict-ssl false
|
npm config set strict-ssl false
|
||||||
npm config set fetch-retries 5
|
npm config set fetch-retries 5
|
||||||
npm config set fetch-retry-mintimeout 20000
|
npm config set fetch-retry-mintimeout 20000
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
ls
|
|
||||||
pwd
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
npm install --registry=https://package-mirror.liara.ir/repository/npm/
|
npm install --registry=https://package-mirror.liara.ir/repository/npm/
|
||||||
@@ -71,4 +60,3 @@ jobs:
|
|||||||
- name: Run Lint
|
- name: Run Lint
|
||||||
run: |
|
run: |
|
||||||
npm run lint --if-present
|
npm run lint --if-present
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user