Merge pull request #28 from Darth-Tech/feature/doc-update-sep-01 #101
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: Go Test | |
on: [push] | |
env: | |
SAMWISE_CLI_GIT_SSH_KEY_PATH: ${{secrets.SAMWISE_CLI_GIT_SSH_KEY_PATH}} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
- name: Install dependencies | |
run: go get . | |
- name: Build | |
run: go build -v ./... | |
- name: setup ssh key for testing | |
run: | | |
mkdir cmd/test_dir | |
echo '${{ secrets.SSH_PRIVATE }}' > cmd/test_dir/id_rsa | |
- name: Test with the Go CLI | |
run: | | |
go test ./cmd/... | |