Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflow/workflow.yml
Original file line number Diff line number Diff line change
@@ -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 ./...
1 change: 1 addition & 0 deletions archivoejemplo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print ("hola valentin")
4 changes: 2 additions & 2 deletions foobar/foobar.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package foobar
çpackage foobar

import (
"errors"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion foobar/foobar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestSequence(t *testing.T) {
expectErr bool
}{
{
length: 5,
length: 7,
expected: []string{"1", "2", "foo", "4", "bar"},
expectErr: false,
},
Expand Down