Skip to content

[Security][Workflow]: Include SAST #111

[Security][Workflow]: Include SAST

[Security][Workflow]: Include SAST #111

Workflow file for this run

name: Tests
on:
push:
tags: ['v*']
pull_request:
branches: ['main']
workflow_dispatch:
workflow_call:
jobs:
go-tests:
runs-on: ubuntu-latest
steps:
- name: Repo Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
- name: Install dependencies
run: go get .
- name: Run build
run: go build ./...
- name: Run tests
run: go test -v ./...
- name: Run golang lint
uses: golangci/golangci-lint-action@v3
nix-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Run nix flake check
run: nix flake check