Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Update workflows to rurn styling #11

Update workflows to rurn styling

Update workflows to rurn styling #11

Workflow file for this run

name: ci
on:
pull_request:
branches: [main]
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
- name: Go Test
run: go test ./... -cover
- name: Go Security Check
run: gosec ./...
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Format styles
run: test -z $(go fmt ./...)
- name: Run staticcheck
run: staticcheck ./...