Skip to content

Commit

Permalink
Bump Github action versions and give check write access in test job
Browse files Browse the repository at this point in the history
A recent run indicated a bunch of warnings that this should take care of:

https://github.com/zeek/package-template/actions/runs/9569151210
  • Loading branch information
ckreibich committed Jun 21, 2024
1 parent 3d9b916 commit 3f32eed
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ jobs:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].1

btest-linux:
permissions:
# This is for action-junit-report, see
# https://github.com/mikepenz/action-junit-report?tab=readme-ov-file#pr-run-permissions
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
checks: write
strategy:
matrix:
name:
Expand All @@ -43,7 +48,7 @@ jobs:
container: ${{ matrix.container }}
continue-on-error: ${{ matrix.allow_failure }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# The output of some commands of `zkg` on the template depends on the
# known tags. Fetch them all.
Expand All @@ -66,7 +71,7 @@ jobs:
- name: Run BTest suite
run: |
btest -djc tests/btest.cfg --xml=btest-results.xml
- uses: mikepenz/action-junit-report@v3
- uses: mikepenz/action-junit-report@v4
if: always() # Always run even if any previous step fails.
with:
report_paths: '**/btest-results.xml'

0 comments on commit 3f32eed

Please sign in to comment.