notification methods and follow notification added #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
tests: | |
name: Security Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: install gosec | |
run: go install github.com/securego/gosec/v2/cmd/gosec@latest | |
- name: Run gosec | |
run: gosec ./... | |
styles: | |
name: formatting tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run formatting tests | |
run: test -z "$(go fmt ./...)" | |
- name: Install staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Run staticcheck | |
run: staticcheck ./... |