fix(ci): public clone, no CI_TOKEN checkout

This commit is contained in:
Andrew Emelyaneko
2026-11-02 15:04:04 +03:00
parent 10b648d6cf
commit 7dba4e2cf1
+9 -13
View File
@@ -12,17 +12,10 @@ jobs:
runs-on: docker
steps:
- name: Checkout code
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
run: |
git init -q
git remote add origin "http://${CI_TOKEN}@10.8.0.52:8080/andrew/plagin_tokens.git"
if [ -n "${GITHUB_SHA:-}" ]; then
git fetch -q --depth 1 origin "${GITHUB_SHA}"
else
git fetch -q --depth 1 origin main
fi
git checkout -q FETCH_HEAD
git clone --depth 1 "http://10.8.0.52:8080/andrew/plagin_tokens.git" src
cd src
- name: Install Bun
run: |
apk add --no-cache bash curl unzip
@@ -31,12 +24,15 @@ jobs:
cp -f /root/.bun/bin/bun /usr/local/bin/bun
fi
bun --version
- name: Install dependencies
working-directory: plagin_tokens
working-directory: src/plagin_tokens
run: bun install
- name: TypeScript type checking
working-directory: plagin_tokens
working-directory: src/plagin_tokens
run: bun run typecheck
- name: Run tests
working-directory: plagin_tokens
working-directory: src/plagin_tokens
run: bun run test