Skip to content

Commit 6799bae

Browse files
committed
tmp
1 parent 1d65b5c commit 6799bae

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout
1515

16-
- name: Run make tests
16+
- name: Run tests
1717
shell: bash
18-
run: make tests
18+
run: make test

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
.PHONY: tests
2-
tests: unit-tests
1+
.PHONY: all test clean
2+
3+
PLATFORM := $(shell docker version --format '{{.Server.Os}}/{{.Server.Arch}}')
4+
DOCKER := docker run --rm --network none --platform $(PLATFORM)
5+
6+
test: lint unit-tests
37

48
unit-tests:
59
@for f in tests/test*.sh; do \
610
echo "sh $$f"; \
711
sh "$$f"; \
812
done
13+
14+
lint:
15+
$(DOCKER) -v ./Makefile:/work/Makefile:ro backplane/checkmake Makefile
16+
$(DOCKER) -v .:/workspace:ro mstruebing/editorconfig-checker ec -exclude '^\.git/'

0 commit comments

Comments
 (0)