-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add license checker for ee licenses (#1564)
* add license checker for ee licenses
- Loading branch information
Showing
29 changed files
with
513 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: EE Backend Go Tests | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Download Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.1 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
|
||
- name: Test that the docker image still builds successfully | ||
run: | | ||
export COMMIT_SHA=$(git rev-parse --short HEAD) | ||
docker build -t testingbuild:latest --build-arg COMMIT_SHA=${COMMIT_SHA} . -f Dockerfile_backend | ||
- name: Deps | ||
run: go get -v ./... | ||
working-directory: ee/backend | ||
|
||
- name: Build | ||
run: go build | ||
working-directory: ee/backend | ||
|
||
- name: Test | ||
run: go test -v ./... | ||
env: | ||
GITHUB_PAT_TOKEN: ${{ secrets.TOKEN_GITHUB }} | ||
working-directory: ee/backend | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: EE Cli tests | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Download Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.1 | ||
id: go | ||
|
||
- name: Setup Opentofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: 1.6.0-alpha3 | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
|
||
- name: Deps | ||
run: | | ||
go get -v ./... | ||
working-directory: ee/cli | ||
|
||
- name: Build | ||
run: | | ||
go build -v ./cmd/digger | ||
working-directory: ee/cli | ||
|
||
- name: Test | ||
run: go test -v ./... | ||
working-directory: ee/cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.