7 Commits
+9 -8
View File
@@ -15,14 +15,12 @@ jobs:
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
run: |
git init -q
git remote add origin "http://10.8.0.52:8080/andrew/plagin_tokens.git"
if [ -n "${GITHUB_SHA:-}" ]; then
git -c http.extraheader="Authorization: token ${CI_TOKEN}" fetch -q --depth 1 origin "${GITHUB_SHA}"
else
git -c http.extraheader="Authorization: token ${CI_TOKEN}" fetch -q --depth 1 origin main
fi
git checkout -q FETCH_HEAD
curl -fsSL -H "Authorization: token ${CI_TOKEN}" \
"http://10.8.0.52:8080/api/v1/repos/andrew/plagin_tokens/archive/main.tar.gz" \
-o repo.tar.gz
tar -xzf repo.tar.gz --strip-components=1
ls
- name: Install Bun
run: |
apk add --no-cache bash curl unzip
@@ -31,12 +29,15 @@ jobs:
cp -f /root/.bun/bin/bun /usr/local/bin/bun
fi
bun --version
- name: Install dependencies
working-directory: plagin_tokens
run: bun install
- name: TypeScript type checking
working-directory: plagin_tokens
run: bun run typecheck
- name: Run tests
working-directory: plagin_tokens
run: bun run test