Skip to content

Commit

Permalink
Add build job to test build works (guacsec#115)
Browse files Browse the repository at this point in the history
* Add build job to test build works

Signed-off-by: mrizzi <[email protected]>

* Add build job to test build works

Signed-off-by: mrizzi <[email protected]>

* guacmigrate: remove unsed broken import

Signed-off-by: mrizzi <[email protected]>

---------

Signed-off-by: mrizzi <[email protected]>
  • Loading branch information
mrizzi authored Aug 9, 2024
1 parent fbda4d3 commit 71f524e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/ci-trustification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,27 @@ jobs:
# - name: Check that all linted text is up to date
# run: make generated_up_to_date

build:
runs-on: ubuntu-latest
name: GO generate/build
steps:
- name: Checkout code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag=v3
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v3.2.1
with:
go-version: '1.21'
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Setup the project
run: go mod download
- name: Run generate
run: go generate ./...
- name: Run build
run: go build ./...

end-to-end:
name: E2E Trustification
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion cmd/guacmigrate/cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/guacsec/guac/pkg/assembler/backends"
"github.com/guacsec/guac/pkg/assembler/backends/ent/backend"
entbackend "github.com/guacsec/guac/pkg/assembler/backends/ent/backend"
_ "github.com/guacsec/guac/pkg/assembler/backends/inmem"
"github.com/guacsec/guac/pkg/logging"
"github.com/spf13/cobra"
)
Expand Down

0 comments on commit 71f524e

Please sign in to comment.