Skip to content

Commit

Permalink
Merge pull request #1230 from csrdelft/fix-github-cache
Browse files Browse the repository at this point in the history
Fix GitHub cache
  • Loading branch information
NathanHuisman authored Dec 3, 2024
2 parents 60223ae + b9dded7 commit 7bd37c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
with:
node-version: '20.x'
cache: yarn
- uses: actions/cache@v3
name: Cache build dependencies
- uses: actions/cache/restore@v4
name: Restore build dependencies cache
with:
path: .yarn/.cache/webpack
key: build-${{ hashFiles('**/webpack.config.js') }}-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -43,6 +43,15 @@ jobs:
name: js
path: htdocs/dist

- uses: actions/cache/save@v4
name: Save build dependencies cache
with:
path: .yarn/.cache/webpack
key: build-${{ hashFiles('**/webpack.config.js') }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |-
build-${{ hashFiles('**/webpack.config.js') }}-${{ hashFiles('**/yarn.lock') }}
build-${{ hashFiles('**/webpack.config.js') }}-
test:
name: Voer tests uit
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion templates/groep/pasfotos.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
{% endif %}

{% for lid in groep.leden %}
<img class="pasfoto" loading="lazy" src="{{ lid.profiel.pasfoto }}" alt="Pasfoto van {{ lid.profiel.naam('volledig') }}">
<a href="/profiel/{{lid.uid}}" title="{{lid.profiel.naam('volledig')}}" class="lidLink {{lid.profiel.status}}" data-lid="{{lid.uid}}" data-lid-naam="{{lid.profiel.naam('volledig')}}">
<img class="pasfoto" loading="lazy" src="{{ lid.profiel.pasfoto }}" alt="Pasfoto van {{ lid.profiel.naam('volledig') }}">
</a>
{% endfor %}
{% endblock %}

0 comments on commit 7bd37c8

Please sign in to comment.