Skip to content

Commit

Permalink
Update CI (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
shilgapira authored Aug 23, 2024
1 parent ddba895 commit 34ef9d2
Show file tree
Hide file tree
Showing 11 changed files with 864 additions and 108 deletions.
24 changes: 24 additions & 0 deletions .github/actions/ci/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Setup

description: Build and Setup

inputs:
go_version:
description: 'Version of Go to use for this build'
required: true

runs:
using: composite
steps:
- name: Setup Repo
uses: ./.github/actions/ci/setup
with:
go_version: ${{ inputs.go_version }}

- name: Build Code
shell: bash
run: go build -v ./...

- name: Run Tests
shell: bash
run: go test -v ./...
19 changes: 19 additions & 0 deletions .github/actions/ci/leaks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Leaks

description: Check Leaks

inputs:
gitleaks_license:
description: "A gitleaks-action license"
required: true

runs:
using: composite
steps:
- name: Check Leaks
uses: gitleaks/gitleaks-action@v2
env:
GITLEAKS_LICENSE: ${{ inputs.gitleaks_license }}
GITLEAKS_CONFIG: .github/actions/ci/leaks/gitleaks.toml
GITLEAKS_ENABLE_SUMMARY: "false"
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"
Loading

0 comments on commit 34ef9d2

Please sign in to comment.