Skip to content

Commit

Permalink
chore(ci): start of GitHub actions
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <[email protected]>
  • Loading branch information
madpah committed Jun 21, 2024
1 parent e74ce6f commit 0975d44
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
jobs:
# Ensure project builds before running testing matrix
build:
name: Build
name: Build & Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand All @@ -35,10 +35,30 @@ jobs:
go-version-file: 'go.mod'
cache: true

- name: Build
run: make all

- name: Run Tests
run: make test

code_quality:
name: Code Quality

runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Run Go Linter
uses: golangci/golangci-lint-action@v5
with:
version: latest

- name: Build
run: make all
- name: SonarCloud Scan
uses: sonarsource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 0975d44

Please sign in to comment.