Skip to content

Commit

Permalink
feat: Caching docker images github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gav committed Feb 18, 2024
1 parent 9c6dde6 commit aec743a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:

- name: Set up Clang-Format
run: sudo apt-get install -y clang-format
with:
cache: 'yarn'
cache-dependency-path: yarn.lock

- name: Format source code
run: clang-format -i game/**/*.cpp game/**/*.hpp --ferror-limit=0 --style file:.clang-format --verbose
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
uses: actions/checkout@v3
- name: Build docker image
run: docker-compose build
with:
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Run tests
run: docker-compose run test

0 comments on commit aec743a

Please sign in to comment.