Skip to content

Commit

Permalink
separated github actions. fix typo
Browse files Browse the repository at this point in the history
C-Loftus committed Nov 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 41f2ded commit 7b0f00b
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/go_tests.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ name: Go Test
on: [push]

jobs:
build:
UnitTests:

runs-on: ubuntu-latest
strategy:
@@ -24,4 +24,27 @@ jobs:
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test ./... -count=1
run: go test ./...

E2ETests:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.23' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -tags 'e2e' ./...
6 changes: 5 additions & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//go:build e2e
// +build e2e

// run go test -tags=e2e ./... to run e2e tests
package cmd

import (
@@ -301,7 +305,7 @@ func TestConfigValidThenInvalid(t *testing.T) {
SecretKey: minioHandle.Container.Password,
Address: strings.Split(url, ":")[0],
Port: strings.Split(url, ":")[1],
Config: "../test_helpers/sample_configs/justmainstemsInvalid.yaml",
Config: "../test_helpers/sample_configs/justMainstemsInvalid.yaml",
SetupBuckets: true,
}

0 comments on commit 7b0f00b

Please sign in to comment.