name: Go CI on: [push, pull_request] # Triggers on push or pull request events jobs: test: name: Test runs-on: ubuntu-24.04 steps: - name: Check out repository code uses: actions/checkout@v5 - name: Set up Go uses: actions/setup-go@v6 with: go-version: '1.25.4' - name: Configure Git for SSH run: | git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/" go env -w GOPRIVATE=git.kundeng.us/phoenix/* - name: Download dependencies run: | echo "Initializing config" mkdir -p ~/.ssh echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/swoosh_deploy_key chmod 600 ~/.ssh/swoosh_deploy_key ssh-keyscan ${{ vars.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) ssh-add -v ~/.ssh/swoosh_deploy_key go mod download - name: Run tests run: go test -v ./... # Runs all tests in the project