feat: 部分软件增加安装校验 #739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: sudo apt-get install -y curl jq | |
- name: Set up environment | |
run: | | |
cp panel-example.conf .env | |
echo "DB_FILE=$(pwd)/storage/panel.db" >> .env | |
go run . artisan key:generate | |
- name: Run tests | |
run: go test ./... |