Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d1fa65299
|
||
|
|
bad40076c6
|
||
|
|
1a9cd0f1ed
|
@@ -4,7 +4,7 @@ on: [push, pull_request] # Triggers on push or pull request events
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test and Lint
|
||||
name: Test
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
@@ -21,13 +21,16 @@ jobs:
|
||||
|
||||
- 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
|
||||
|
||||
- name: Run linter
|
||||
uses: https://github.com/golangci/golangci-lint-action@v8
|
||||
with:
|
||||
go-version: '1.25.3'
|
||||
version: latest
|
||||
|
||||
@@ -10,7 +10,6 @@ type MessageSender struct {
|
||||
Numbers []contact.Contact
|
||||
}
|
||||
|
||||
|
||||
func (m *MessageSender) Send() error {
|
||||
if len(m.Numbers) == 0 {
|
||||
return fmt.Errorf("No numbers to send")
|
||||
|
||||
Reference in New Issue
Block a user