Skip to content

Commit

Permalink
single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjennings committed Oct 25, 2024
1 parent b637585 commit f57a58b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 36 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/golanglint-ci.yml

This file was deleted.

34 changes: 22 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: Tests

on:
push:
name: "Tests"
on: ["push"]

jobs:
build:
runs-on: ubuntu-latest
ci:
name: "Run CI"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macOS-latest"]
go: ["1.20.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: WillAbides/[email protected]
with:
fetch-depth: 2
- uses: actions/setup-go@v3
go-version: ${{ matrix.go }}
- run: "go test ./..."
- run: "go vet ./..."
- uses: dominikh/staticcheck-action@v1
with:
go-version: '1.20'
- name: Run tests
run: go test -v ./...
version: "latest"
install-go: false
cache-key: ${{ matrix.go }}
working-directory: ${{ matrix.dir }}
4 changes: 0 additions & 4 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ const (
DefaultPackfileDirectory = "pack"
)

func init() {
Configure()
}

var config Cnf

type (
Expand Down
1 change: 1 addition & 0 deletions index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

func TestAdd_WDUntracked(t *testing.T) {
assert.Nil(t, Configure())
idx := NewIndex()
err := idx.Add(&File{Path: "test_assets/test.file", Sha: Sha{}, wdStatus: WDUntracked})
assert.Nil(t, err)
Expand Down
1 change: 1 addition & 0 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func Test_Library(t *testing.T) {

// write the tree to the object store
treeSha, err := tree.WriteTree()
e(err, t)

// check for no previous commits
pc, err := PreviousCommits()
Expand Down

0 comments on commit f57a58b

Please sign in to comment.