Skip to content

Merge pull request #2 from zyyw/sbom-fake-scanner #8

Merge pull request #2 from zyyw/sbom-fake-scanner

Merge pull request #2 from zyyw/sbom-fake-scanner #8

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Docker
uses: docker-practice/[email protected]
with:
docker_version: 20.04
docker_channel: stable
- name: Run lint
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.7
- name: Cache go mod
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make test