Skip to content

Merge pull request #71 from anchore/dependabot/go_modules/github.com/… #170

Merge pull request #71 from anchore/dependabot/go_modules/github.com/…

Merge pull request #71 from anchore/dependabot/go_modules/github.com/… #170

Workflow file for this run

name: "Tests"
on:
workflow_dispatch:
push:
jobs:
Unit-Tests:
strategy:
matrix:
# test the lower bounds of support, and the latest available
go-version: ["1.20.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
- name: Restore bootstrap cache
id: bootstrap-cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
${{ github.workspace }}/.tmp
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}-
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Bootstrap project dependencies
if: steps.bootstrap-cache.outputs.cache-hit != 'true'
run: make bootstrap
- name: Run unit tests
run: make unit