This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
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.
Merge pull request #35 from dabumana/developer
v1.0.1
- Loading branch information
Showing
16 changed files
with
246 additions
and
90 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
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 |
---|---|---|
@@ -1,46 +1,36 @@ | ||
name: Integrity | ||
name: Integration | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: [ "main", "developer" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
branches: [ "main", "developer" ] | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
|
||
jobs: | ||
codacy-security-scan: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
name: Codacy Security Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repository to the GitHub Actions runner | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis | ||
- name: Run Codacy Analysis CLI | ||
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b | ||
build-coverage: | ||
name: Coverage | ||
runs-on: ${{'ubuntu-latest' || 'macos-latest' || 'windows-latest' }} | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository | ||
# You can also omit the token and run the tools that support default configurations | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
verbose: true | ||
output: results.sarif | ||
format: sarif | ||
# Adjust severity of non-security issues | ||
gh-code-scanning-compat: true | ||
# Force 0 exit code to allow SARIF file generation | ||
# This will handover control about PR rejection to the GitHub side | ||
max-allowed-issues: 2147483647 | ||
go-version: 1.19 | ||
|
||
# Upload the SARIF file generated in the previous step | ||
- name: Upload SARIF results file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
sarif_file: results.sarif | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Dependencies | ||
run: sudo apt-get install libcurl4-openssl-dev | ||
|
||
- name: Build | ||
run: make build APP=caos | ||
|
||
- name: Coverage | ||
run: make test |
18 changes: 8 additions & 10 deletions
18
.github/workflows/build.yml → .github/workflows/release.yml
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 |
---|---|---|
@@ -1,34 +1,32 @@ | ||
name: Build | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- developer | ||
pull_request: | ||
branches: ["main"] | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{'ubuntu-latest' || 'macos-latest' || 'windows-latest' }} | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
go-version: 1.20 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- uses: go-semantic-release/action@v1 | ||
- name: Versioned | ||
id: semantic | ||
uses: go-semantic-release/action@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Dependencies | ||
run: sudo apt-get install libcurl4-openssl-dev | ||
|
||
- name: Build | ||
run: make build APP=caos | ||
run: make build APP=caos VERSION=${{steps.semantic.outputs.version}} |
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ src/export* | |
src/training* | ||
src/.env | ||
src/test/.env | ||
.env |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM golang:1.20 | ||
FROM golang:1.19 | ||
|
||
WORKDIR /usr/local/bin | ||
ENV APP_HOME /usr/local/bin/caos | ||
|
||
RUN mkdir -p ${APP_HOME} | ||
RUN git clone https://github.com/dabumana/caos ${APP_HOME} | ||
RUN make -C ${APP_HOME}/src build | ||
|
||
RUN mv ${APP_HOME}/src/bin/* /usr/local/bin | ||
RUN cp ${APP_HOME}/src/bin/caos/* /usr/local/bin | ||
RUN rm -rf ${APP_HOME} | ||
|
||
ENTRYPOINT [ "caos-v.0.0.0" ] | ||
ENTRYPOINT [ "caos" ] |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// Main package | ||
package main | ||
|
||
import "caos/handler" | ||
import ( | ||
"caos/handler" | ||
) | ||
|
||
// Main | ||
func main() { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package resources | ||
|
||
import "embed" | ||
|
||
//go:embed template | ||
var Asset embed.FS |
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,2 @@ | ||
"API_KEY","" | ||
"ZERO_API_KEY","" |
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
Oops, something went wrong.