-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added linting to CI * added node to install ci * remove test ci * fix bug in go lint ci * removed safe repo * renaming of handler files * changed order of build make file command + installer for templ in ci cd * fix rename from swaggo to templ * addded build tempol to lint * addressed linting issue * added installer for templ to the lint action * make repo safe! * vcs disable false
- Loading branch information
1 parent
4cbf153
commit adbc03b
Showing
6 changed files
with
72 additions
and
10 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,49 @@ | ||
name: Ci | ||
|
||
on: | ||
pull_request: | ||
branches: [ master, development ] | ||
|
||
jobs: | ||
build: | ||
name: Build binary | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golangci/golangci-lint:latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Make repo safe | ||
run: git config --global --add safe.directory /__w/SOARCA-GUI/SOARCA-GUI | ||
- name: Install Templ | ||
run: go install github.com/a-h/templ/cmd/templ@latest | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
|
||
- name: Build with make | ||
run: make build | ||
|
||
lint: | ||
name: Lint go code with golangci | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golangci/golangci-lint:latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Templ | ||
run: go install github.com/a-h/templ/cmd/templ@latest | ||
|
||
- name: lint | ||
run: | | ||
ls -la | ||
make lint | ||
shell: bash |
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
File renamed without changes.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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