Skip to content

feat: Assertion verification #785

feat: Assertion verification

feat: Assertion verification #785

Workflow file for this run

name: 'CI'
on:
pull_request:
branches:
- main
paths-ignore:
- '**/*.yaml'
- '**/*.md'
- LICENSE
- CODEOWNERS
- '.gitignore'
jobs:
govulncheck:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod
go-package: ./...
golangci:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: 'go.mod'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
with:
version: v1.60.3
# Optional: golangci-lint command line arguments.
args: --timeout=10m --out-format=colored-line-number
unit:
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: 'go.mod'
cache: false
- name: Unit Tests with the Go CLI
run: go test ./... -short -race -cover
e2e:
name: e2e tests
runs-on: ubuntu-latest
steps:
- name: Start up the platform with deps and containers
uses: opentdf/platform/test/start-up-with-containers@main
with:
platform-ref: 'main'
- uses: opentdf/otdfctl/e2e@main
with:
otdfctl-ref: ${{ github.event.pull_request.head.sha }}