mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-14 12:36:40 +00:00
The https://github.com/slsa-framework/slsa-github-generator is in go 1.18 and keeping it consistent. Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
27 lines
556 B
YAML
27 lines
556 B
YAML
name: Pre submits
|
|
on: [pull_request, workflow_dispatch]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
pre-submit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3 # v3
|
|
|
|
- name: setup-go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v3
|
|
with:
|
|
go-version: '1.18'
|
|
|
|
- name: Run tests for verifier
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
go mod vendor
|
|
# Build
|
|
go build -mod=vendor
|
|
# Tests
|
|
go test -mod=vendor -v ./...
|