Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# Keeps the pinned action SHAs in .github/workflows current.
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore"
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
# Run the test suite on every push to master and every pull request.
#
# The matrix covers the oldest Go this module declares (go.mod) and the
# current stable release. Consumers such as sbomify/sbom-tools build it with
# whatever their toolchain is, so both ends need to stay green.
name: Test

on:
push:
branches: [master]
pull_request:

permissions:
contents: read

jobs:
test:
name: go ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.18", "stable"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go }}
# No go.sum: the module has no dependencies.
cache: false

- name: go vet
run: go vet ./...

- name: go test
run: go test -race -count=1 ./...
Loading