Skip to content

marked priortiy on testDB #2

marked priortiy on testDB

marked priortiy on testDB #2

Workflow file for this run

# 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: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20
- name: Build
run: go build -v ./...
- name: install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: staticcheck
run: staticcheck ./...
- name: install gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
- name: security check
run: gosec ./...
- name: Test
run: |
go test -v ./...
if [ $? -ne 0 ]; then
echo "Tests failed"
exit 1
fi