Skip to content

Commit

Permalink
license-scan: run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cbgbt committed Oct 8, 2024
1 parent 992d60a commit 55076cd
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-license-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test bottlerocket-license-scan
on:
pull_request:
branches:
- "*"
paths:
- "license-scan/**"
jobs:
build:
runs-on:
group: bottlerocket
labels: bottlerocket_ubuntu-latest_8-core
steps:
- uses: actions/checkout@v3
- run: rustup update stable
- run: cargo install cargo-deny --locked
- run: make build
working-directory: ./license-scan
24 changes: 24 additions & 0 deletions license-scan/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
TOP := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))

.PHONY: deny
deny:
cargo deny --no-default-features check licenses bans sources

.PHONY: clippy
clippy:
cargo clippy --locked -- -D warnings --no-deps

.PHONY: fmt
fmt:
cargo fmt --check

.PHONY: test
test:
cargo test --locked

.PHONY: check
check: fmt clippy deny test

.PHONY: build
build: check
cargo build --locked

0 comments on commit 55076cd

Please sign in to comment.