versions must be strings #113

Merged
twenty-panda merged 2 commits from refs/pull/113/head into main 2024-04-27 08:53:41 +00:00
2 changed files with 17 additions and 18 deletions

View file

@ -1,6 +1,16 @@
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: cache S3 binaries
id: S3
uses: https://code.forgejo.org/actions/cache@v3
with:
path: |
/usr/local/bin/minio
/usr/local/bin/mc
/usr/local/bin/garage
key: S3
- uses: https://code.forgejo.org/actions/setup-forgejo@v2 - uses: https://code.forgejo.org/actions/setup-forgejo@v2
with: with:
install-only: true install-only: true

View file

@ -80,13 +80,13 @@ jobs:
strategy: strategy:
matrix: matrix:
info: info:
- version: 7.0 - version: "7.0"
branch: next branch: next
forgejo: https://codeberg.org forgejo: https://codeberg.org
repo: forgejo-experimental/forgejo owner: forgejo-experimental
- version: 1.21 - version: "1.21"
forgejo: https://codeberg.org forgejo: https://codeberg.org
repo: forgejo/forgejo owner: forgejo
steps: steps:
- uses: https://code.forgejo.org/actions/checkout@v4 - uses: https://code.forgejo.org/actions/checkout@v4
- uses: ./.forgejo/prepare-end-to-end - uses: ./.forgejo/prepare-end-to-end
@ -95,7 +95,7 @@ jobs:
shell: bash shell: bash
run: | run: |
set -x set -x
full_version=$(./end-to-end.sh full_version ${{ matrix.info.version }}) full_version=$(./end-to-end.sh full_version ${{ matrix.info.version }} ${{ matrix.info.owner }})
echo value="$full_version" >> $GITHUB_OUTPUT echo value="$full_version" >> $GITHUB_OUTPUT
- run: su forgejo -c "./end-to-end.sh test_actions ${{ matrix.info.version }}" - run: su forgejo -c "./end-to-end.sh test_actions ${{ matrix.info.version }}"
- name: update documentation - name: update documentation
@ -121,22 +121,11 @@ jobs:
needs: [build] needs: [build]
runs-on: lxc-bookworm runs-on: lxc-bookworm
steps: steps:
- name: cache S3 binaries - uses: https://code.forgejo.org/actions/checkout@v4
id: S3 - uses: ./.forgejo/prepare-end-to-end
uses: https://code.forgejo.org/actions/cache@v3
with:
path: |
/usr/local/bin/minio
/usr/local/bin/mc
/usr/local/bin/garage
key: S3
- name: skip if S3 cache hit - name: skip if S3 cache hit
if: steps.S3.outputs.cache-hit != 'true' if: steps.S3.outputs.cache-hit != 'true'
run: echo no hit run: echo no hit
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: ./.forgejo/prepare-end-to-end
- run: su forgejo -c "./end-to-end.sh test_upgrades" - run: su forgejo -c "./end-to-end.sh test_upgrades"
- run: su forgejo -c "./end-to-end.sh test_storage" - run: su forgejo -c "./end-to-end.sh test_storage"
- name: full logs - name: full logs