Skip to content

Commit

Permalink
Fix Github actions setup
Browse files Browse the repository at this point in the history
Add workaround for git diff issue: actions/checkout#766

Fix indentation that perltidy complains about

Use Debian tagged images for the the perl images

Use newer checkout version to avoid node deprecation warnings
  • Loading branch information
nicomen committed Jun 19, 2024
1 parent 9839a51 commit 1ffd30f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
strategy:
matrix:
perl-version:
- '5.16'
- '5.18'
- '5.20'
- '5.22'
- '5.30'
- '5.32'
- '5.16-buster'
- '5.18-buster'
- '5.20-buster'
- '5.22-buster'
- '5.30-bullseye'
- '5.32-bullseye'
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: perl -V
run: perl -V
- name: Fix ExtUtils::MakeMaker (for Perl 5.16 and 5.18)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/perltidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
container:
image: perl:5.32
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: perl -V
run: perl -V
- name: Install dependencies
Expand All @@ -23,4 +23,5 @@ jobs:
shell: bash
run: |
shopt -s extglob globstar nullglob
git config --global --add safe.directory "$GITHUB_WORKSPACE"
perltidy --pro=.../.perltidyrc -b -bext='/' **/*.p[lm] **/*.t && git diff --exit-code
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/AssetPack.pm
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ sub _render_tags {

return Mojo::ByteStream->new(
join "\n",
map { $_->tag_for->($_, $c, \%args, @attrs) }
map { $_->tag_for->($_, $c, \%args, @attrs) }
grep { !$_->isa('Mojolicious::Plugin::AssetPack::Asset::Null') } @$assets
);
}
Expand Down

0 comments on commit 1ffd30f

Please sign in to comment.