Skip to content

Commit

Permalink
Merge pull request #16 from victor-gp/ci-cache-syntest-docker-image
Browse files Browse the repository at this point in the history
CI: cache `syntest` docker image
  • Loading branch information
victor-gp authored Nov 1, 2022
2 parents ade16bf + f8d593a commit 50d2313
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 50d2313

Please sign in to comment.