Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7582ec7bdf | ||
|
|
af6e212eda | ||
|
|
a33f097b91 | ||
|
|
e0948773be | ||
|
|
7b9087ddb7 | ||
|
|
7dba4e2cf1 | ||
|
|
10b648d6cf |
@@ -15,14 +15,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git init -q
|
curl -fsSL -H "Authorization: token ${CI_TOKEN}" \
|
||||||
git remote add origin "http://10.8.0.52:8080/andrew/plagin_tokens.git"
|
"http://10.8.0.52:8080/api/v1/repos/andrew/plagin_tokens/archive/main.tar.gz" \
|
||||||
if [ -n "${GITHUB_SHA:-}" ]; then
|
-o repo.tar.gz
|
||||||
git -c http.extraheader="Authorization: token ${CI_TOKEN}" fetch -q --depth 1 origin "${GITHUB_SHA}"
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
else
|
ls
|
||||||
git -c http.extraheader="Authorization: token ${CI_TOKEN}" 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 +29,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: plagin_tokens
|
||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
- name: TypeScript type checking
|
- name: TypeScript type checking
|
||||||
working-directory: plagin_tokens
|
working-directory: plagin_tokens
|
||||||
run: bun run typecheck
|
run: bun run typecheck
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: plagin_tokens
|
working-directory: plagin_tokens
|
||||||
run: bun run test
|
run: bun run test
|
||||||
|
|||||||
Reference in New Issue
Block a user