Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 32 additions & 12 deletions .github/workflows/scheduled-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,35 @@ on:
schedule:
- cron: '17 3 * * 1'
workflow_dispatch:

env:
PKGR_VERSION: c87a5d00a3a7c4c0887161c8000cc7df8734ebed
inputs:
pkgr_version:
description: master or a full pkgr commit SHA
required: false
default: master

jobs:
resolve-pkgr:
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.version.outputs.value }}
steps:
- name: Resolve the pkgr version
id: version
env:
REQUESTED_VERSION: ${{ inputs.pkgr_version || 'master' }}
run: |
version="$REQUESTED_VERSION"
if [[ "$version" = master ]]; then
version=$(git ls-remote https://github.com/pkgr/pkgr.git refs/heads/master | cut -f1)
fi
if [[ ! "$version" =~ ^[0-9a-f]{40}$ ]]; then
echo "pkgr_version must be master or a full commit SHA" >&2
exit 1
fi
echo "value=$version" >> "$GITHUB_OUTPUT"

recipes:
needs: resolve-pkgr
runs-on: ubuntu-24.04
timeout-minutes: 180
strategy:
Expand All @@ -29,23 +52,18 @@ jobs:
- sles:12
- sles:15
- sles:16
env:
PKGR_VERSION: ${{ needs.resolve-pkgr.outputs.version }}
steps:
- uses: actions/checkout@v5
- name: Resolve the pkgr revision
id: pkgr
run: |
revision="$PKGR_VERSION"
if [[ ! "$revision" =~ ^[0-9a-f]{40}$ ]]; then
revision=$(git ls-remote https://github.com/crohr/pkgr.git refs/heads/master | cut -f1)
fi
echo "revision=$revision" >> "$GITHUB_OUTPUT"
- name: Exercise local recipes and warm cache hits
run: node package/e2e/recipes.js
env:
TARGET: ${{ matrix.target }}
PKGR_REVISION: ${{ steps.pkgr.outputs.revision }}
PKGR_REVISION: ${{ needs.resolve-pkgr.outputs.version }}

applications:
needs: resolve-pkgr
runs-on: ubuntu-24.04
timeout-minutes: 90
strategy:
Expand All @@ -66,6 +84,8 @@ jobs:
- sles:15
- sles:16
language: [ruby, node, python]
env:
PKGR_VERSION: ${{ needs.resolve-pkgr.outputs.version }}
steps:
- uses: actions/checkout@v5
- name: Select legacy runtime versions
Expand Down
46 changes: 32 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,33 @@ on:
pull_request:
push:
workflow_dispatch:

env:
PKGR_VERSION: c87a5d00a3a7c4c0887161c8000cc7df8734ebed
inputs:
pkgr_version:
description: master or a full pkgr commit SHA
required: false
default: master

jobs:
resolve-pkgr:
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.version.outputs.value }}
steps:
- name: Resolve the pkgr version
id: version
env:
REQUESTED_VERSION: ${{ inputs.pkgr_version || 'master' }}
run: |
version="$REQUESTED_VERSION"
if [[ "$version" = master ]]; then
version=$(git ls-remote https://github.com/pkgr/pkgr.git refs/heads/master | cut -f1)
fi
if [[ ! "$version" =~ ^[0-9a-f]{40}$ ]]; then
echo "pkgr_version must be master or a full commit SHA" >&2
exit 1
fi
echo "value=$version" >> "$GITHUB_OUTPUT"

unit:
runs-on: ubuntu-24.04
steps:
Expand All @@ -28,33 +50,29 @@ jobs:
run: git diff --exit-code -- package/dist

recipes:
needs: unit
needs: [resolve-pkgr, unit]
runs-on: ubuntu-24.04
timeout-minutes: 180
env:
PKGR_VERSION: ${{ needs.resolve-pkgr.outputs.version }}
steps:
- uses: actions/checkout@v5
- name: Resolve the pkgr revision
id: pkgr
run: |
revision="$PKGR_VERSION"
if [[ ! "$revision" =~ ^[0-9a-f]{40}$ ]]; then
revision=$(git ls-remote https://github.com/crohr/pkgr.git refs/heads/master | cut -f1)
fi
echo "revision=$revision" >> "$GITHUB_OUTPUT"
- name: Exercise local recipes and warm cache hits
run: node package/e2e/recipes.js
env:
TARGET: ubuntu:24.04
PKGR_REVISION: ${{ steps.pkgr.outputs.revision }}
PKGR_REVISION: ${{ needs.resolve-pkgr.outputs.version }}

applications:
needs: unit
needs: [resolve-pkgr, unit]
runs-on: ubuntu-24.04
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
language: [ruby, node, python]
env:
PKGR_VERSION: ${{ needs.resolve-pkgr.outputs.version }}
steps:
- uses: actions/checkout@v5
- uses: ./package
Expand Down
Loading