fix(ci): public clone, no CI_TOKEN checkout
This commit is contained in:
+9
-13
@@ -12,17 +12,10 @@ jobs:
|
|||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
env:
|
|
||||||
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
git init -q
|
git clone --depth 1 "http://10.8.0.52:8080/andrew/plagin_tokens.git" src
|
||||||
git remote add origin "http://${CI_TOKEN}@10.8.0.52:8080/andrew/plagin_tokens.git"
|
cd src
|
||||||
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
|
|
||||||
- name: Install Bun
|
- name: Install Bun
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache bash curl unzip
|
apk add --no-cache bash curl unzip
|
||||||
@@ -31,12 +24,15 @@ jobs:
|
|||||||
cp -f /root/.bun/bin/bun /usr/local/bin/bun
|
cp -f /root/.bun/bin/bun /usr/local/bin/bun
|
||||||
fi
|
fi
|
||||||
bun --version
|
bun --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: plagin_tokens
|
working-directory: src/plagin_tokens
|
||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
- name: TypeScript type checking
|
- name: TypeScript type checking
|
||||||
working-directory: plagin_tokens
|
working-directory: src/plagin_tokens
|
||||||
run: bun run typecheck
|
run: bun run typecheck
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: plagin_tokens
|
working-directory: src/plagin_tokens
|
||||||
run: bun run test
|
run: bun run test
|
||||||
|
|||||||
Reference in New Issue
Block a user