diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c666e8a..098851d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,16 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.10' + - uses: docker/setup-buildx-action@v2 + - name: Build and cache syntest + uses: docker/build-push-action@v3 + with: + context: . + file: ./tests/docker/syntest.dockerfile + tags: syntest + cache-from: type=gha,scope=main + cache-to: type=gha,scope=main,mode=max + load: true - name: Run syntax tests run: tests/syntax.py diff --git a/tests/syntax.py b/tests/syntax.py index fca1836..e842e62 100755 --- a/tests/syntax.py +++ b/tests/syntax.py @@ -47,7 +47,7 @@ f"docker build -t {image_tag} - < {dockerfile_path}", shell=True ) - print("\033[34m" + "Docker build ends here." + "\033[00m") + print("\033[34m" + f"Docker image successfully built, tagged '{image_tag}'." + "\033[00m") man_syntax_path = Path('../syntaxes/Manpage.sublime-syntax') if not man_syntax_path.is_file():