mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-26 19:30:55 +01:00
38 lines
700 B
YAML
38 lines
700 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
platform: [ ubuntu-latest, windows-latest ]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.24
|
|
|
|
- name: Build
|
|
run: go build ./...
|
|
|
|
- name: Set up gotestsum
|
|
run: |
|
|
go install gotest.tools/gotestsum@latest
|
|
|
|
- name: Test
|
|
run: |
|
|
gotestsum --raw-command -- go test -json ./... --race
|
|
|
|
- name: Validate Config
|
|
run: go generate ./... && git diff --exit-code
|