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.26.2' - name: Configure Git for SSH run: | git config --global url."git@${{ secrets.GIT_HOST_ROOT }}:".insteadOf "https://${{ secrets.GIT_HOST_ROOT }}/" go env -w GOPRIVATE=${{ secrets.GIT_HOST_ROOT }}/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 ${{ secrets.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