diff --git a/.github/workflow/workflow.yml b/.github/workflow/workflow.yml new file mode 100644 index 0000000..dcaae06 --- /dev/null +++ b/.github/workflow/workflow.yml @@ -0,0 +1,32 @@ +name: main-worklfow + +env: {} + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + # Run all unit tests. + run-tests: + runs-on: ubuntu-latest + steps: + # Check out the pull request's source code. + - name: Check out source code + uses: actions/checkout@v3 + + # Install Go. + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: "^1.14" # The Go version to download and use. + - name: Print Go version + run: go version + + # Run unit tests. + - name: Run unit tests + run: go test -v ./... diff --git a/archivoejemplo.py b/archivoejemplo.py new file mode 100644 index 0000000..bdf6676 --- /dev/null +++ b/archivoejemplo.py @@ -0,0 +1 @@ +print ("hola valentin") \ No newline at end of file diff --git a/foobar/foobar.go b/foobar/foobar.go index 1416c8e..6e25151 100644 --- a/foobar/foobar.go +++ b/foobar/foobar.go @@ -1,4 +1,4 @@ -package foobar +çpackage foobar import ( "errors" @@ -20,7 +20,7 @@ func Sequence(length int) ([]string, error) { switch { case n%3 == 0 && n%5 == 0: seq[i] = "foobar" - case n%5 == 0: + case n%7 == 0: seq[i] = "bar" case n%3 == 0: seq[i] = "foo" diff --git a/foobar/foobar_test.go b/foobar/foobar_test.go index 16c828e..cbb6744 100644 --- a/foobar/foobar_test.go +++ b/foobar/foobar_test.go @@ -13,7 +13,7 @@ func TestSequence(t *testing.T) { expectErr bool }{ { - length: 5, + length: 7, expected: []string{"1", "2", "foo", "4", "bar"}, expectErr: false, },