We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d65b5c commit 6799baeCopy full SHA for 6799bae
.github/workflows/test.yaml
@@ -13,6 +13,6 @@ jobs:
13
steps:
14
- uses: actions/checkout
15
16
- - name: Run make tests
+ - name: Run tests
17
shell: bash
18
- run: make tests
+ run: make test
Makefile
@@ -1,8 +1,16 @@
1
-.PHONY: tests
2
-tests: unit-tests
+.PHONY: all test clean
+
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
7
8
unit-tests:
9
@for f in tests/test*.sh; do \
10
echo "sh $$f"; \
11
sh "$$f"; \
12
done
+lint:
+ $(DOCKER) -v ./Makefile:/work/Makefile:ro backplane/checkmake Makefile
+ $(DOCKER) -v .:/workspace:ro mstruebing/editorconfig-checker ec -exclude '^\.git/'
0 commit comments