Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mvach committed Oct 21, 2024
1 parent d774109 commit 8f94a74
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 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

- name: Test
run: go test ./...
15 changes: 0 additions & 15 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ var _ = Describe("Config", func() {
})

var _ = Describe("config errors", func() {
It("returns an error if mandatory working_dir is missing", func() {
jsonContent := `
{
}
`
_, err := tempFile.Write([]byte(jsonContent))
Expect(err).ToNot(HaveOccurred())
tempFile.Close()

cfg, err := config.LoadConfig(tempFile.Name())
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(Equal("failed to validate the config file, property working_dir is required"))
Expect(cfg).To(BeNil())
})

It("returns an error if mandatory excel_file_name is missing", func() {
jsonContent := `
{
Expand Down

0 comments on commit 8f94a74

Please sign in to comment.