Skip to content

Commit

Permalink
Merge pull request #1 from brightfame/add-github-action
Browse files Browse the repository at this point in the history
Create GitHub Actions (go.yml)
  • Loading branch information
robmorgan authored Jan 20, 2025
2 parents ac88c0d + 6d5f0d0 commit 5b87feb
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 35 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion internal/fileutil/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestIsSubFolder(t *testing.T) {
{"Child and sibling", "/parent/child", "/parent/childsibling", false},
}

fixtureRoot := "../test/fixtures/util"
fixtureRoot := "testdata"

for _, testCase := range testCases {
// The following is necessary to make sure testCase's values don't
Expand Down
Empty file.
Empty file.
Empty file.
34 changes: 0 additions & 34 deletions pkg/logging/logging_test.go

This file was deleted.

0 comments on commit 5b87feb

Please sign in to comment.