feat: added modules

This commit is contained in:
Marvin Zhang
2024-06-14 16:37:48 +08:00
parent dc21bce11f
commit 6a60433d25
157 changed files with 5887 additions and 305 deletions

35
vcs/.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Test
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2.1.3
with:
go-version: 1.18
- name: Configure Git
run: |
git config --global user.name "Marvin Zhang"
git config --global user.email "tikazyq@163.com"
- name: Write Credentials
run: |
echo '${{ secrets.CREDENTIAL_JSON }}' > $GITHUB_WORKSPACE/credentials.json
echo '${{ secrets.CREDENTIAL_JSON }}' > $GITHUB_WORKSPACE/test/credentials.json
ls -l $GITHUB_WORKSPACE/test
mkdir -p $GITHUB_WORKSPACE/.ssh
echo "${{ secrets.SSH_KEY }}" > $GITHUB_WORKSPACE/id_rsa
ls -la $GITHUB_WORKSPACE
echo "GITHUB_WORKSPACE: $GITHUB_WORKSPACE"
- name: Install
run: go mod tidy
- name: Run Tests
run: go test ./... -race