Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Dec 19, 2023
1 parent 75aafc9 commit 591276b
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 115 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: "Merlin Agent Build & Test"

on:
push:
paths-ignore:
- '.github/**'
- 'docs/**'
- '.gitattributes'
- '.gitignore'
- 'LICENSE'
- 'README.MD'
pull_request:
paths-ignore:
- '.github/**'
- 'docs/**'
- '.gitattributes'
- '.gitignore'
- 'LICENSE'
- 'README.MD'

jobs:
build:
name: 'Build Job'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
id: checkout
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
check-latest: true

- name: 'Test Merlin Agent'
id: test
run: 'go test ./...'

- name: 'Build Merlin Agent'
id: build
run: 'make all'
33 changes: 14 additions & 19 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,31 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#

# This is "Advanced" because it is using this codeql.yml workflow and not using GitHub's built-in "Default" CodeQL workflow
name: "CodeQL Advanced"

on:
push:
branches: [ "main", "dev" ]
paths-ignore:
- '.github/**'
- 'docs/**'
- '.gitattributes'
- '.gitignore'
- 'go.mod'
- 'go.sum'
- 'LICENSE'
- 'Makefile'
- 'README.MD'
pull_request:
branches: [ "main", "dev" ]
paths-ignore:
- '.github/**'
- 'docs/**'
- '.gitattributes'
- '.gitignore'
- 'go.mod'
- 'go.sum'
- 'LICENSE'
- 'Makefile'
- 'README.MD'
Expand Down Expand Up @@ -67,29 +80,11 @@ jobs:
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

# Steps above here were provided in the default CodeQL YAML workflow file.
# Steps below here are custom steps added to the default CodeQL YAML workflow file.
- name: GoVulnCheck
id: govulncheck
uses: golang/govulncheck-action@v1
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/go.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/qodana.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Merlin Agent Release"

on:
push:
branches:
- "main"
tags:
- 'v*.*.*'

Expand Down

0 comments on commit 591276b

Please sign in to comment.