Skip to content

Commit

Permalink
build: add actions/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Jun 18, 2024
1 parent fe91180 commit b7d0a21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,21 @@ jobs:
- name: Set up Docker
uses: docker/setup-buildx-action@v1

#- name: Cache Docker layers
# uses: actions/cache@v4
# with:
# path: |
# /tmp/.buildx-cache
# key: ${{ runner.os }}-${{ matrix.mariadb_tag }}-${{ matrix.wordpress_tag }}-${{ matrix.node_tag }}-buildx-${{ hashFiles('**/.buildx-cache') }}
# restore-keys: |
# ${{ runner.os }}-${{ matrix.mariadb_tag }}-${{ matrix.wordpress_tag }}-${{ matrix.node_tag }}-buildx-
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ matrix.mariadb_tag }}-${{ matrix.wordpress_tag }}-${{ matrix.node_tag }}-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-buildx-${{ matrix.mariadb_tag }}-${{ matrix.wordpress_tag }}-${{ matrix.node_tag }}-
- name: Cache npm modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node_tag }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node_tag }}-
- name: Set GITHUB_ENV
run: |
Expand Down
2 changes: 1 addition & 1 deletion acf-uppy/include_from.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
+ vendor/
- vendor/bin/
+ vendor/**
+ README.txt
+ readme.txt
+ acf-uppy.php
- *

0 comments on commit b7d0a21

Please sign in to comment.