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

Commit

Permalink
workflow(pr): add semgrep & cross-compability checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Jun 28, 2022
1 parent 4217e48 commit c1ef6aa
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,33 @@ jobs:
with:
go-version: 1.18

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Check out code
uses: actions/checkout@v3

# - name: Run tests
# run: make test

- name: Compile the project
run: make build

- name: GolangCI-Lint
- name: Run GolangCI-Lint
uses: golangci/golangci-lint-action@v3.1.0
with:
version: latest
args: --tests=0
args: --tests=0 --timeout=30m

- name: Run Semgrep
run: |
python3 -m pip install semgrep
semgrep scan --config auto --dryrun -q --include "**.go"
- name: Cross-platform checks
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: build --skip-validate --rm-dist --timeout=30m

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down

0 comments on commit c1ef6aa

Please sign in to comment.