diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..658a74a --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,33 @@ +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..e1b904b --- /dev/null +++ b/archivoejemplo.py @@ -0,0 +1 @@ +print("a") diff --git a/foobar/foobar.go b/foobar/foobar.go index 1416c8e..bb642bd 100644 --- a/foobar/foobar.go +++ b/foobar/foobar.go @@ -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"