Skip to content

chore(deps): bump the minor-and-patch group with 8 updates #135

chore(deps): bump the minor-and-patch group with 8 updates

chore(deps): bump the minor-and-patch group with 8 updates #135

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
# Jobs that need Docker (litmus, cs3api, acceptance) run on bare ubuntu with setup-go.
# Container jobs can't run `docker run` — no Docker-in-Docker in GHA.
# https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container#about-container-jobs
jobs:
check-go-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: make go-generate && git diff --exit-code
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: sudo apt-get update && sudo apt-get install -y inotify-tools
- run: make test
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: coverage
path: coverage.out
build:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: make dist
integration-tests:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: docker run -d --name redis --network host -e REDIS_DATABASES=1 redis:6-alpine
- run: make test-integration
env:
REDIS_ADDRESS: localhost:6379
litmus:
needs: [unit-tests]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
endpoint: [old-webdav, new-webdav, spaces-dav]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: python3 tests/acceptance/run-litmus.py --endpoint ${{ matrix.endpoint }}
cs3api-validator:
needs: [unit-tests]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
storage: [ocis] # TODO: s3ng blocked on Ceph networking — follow-up PR
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: python3 tests/acceptance/run-cs3api.py --storage ${{ matrix.storage }}
acceptance-tests-ocis:
needs: [unit-tests]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: [1, 2] # TODO: parts 3,4 blocked on chunked Transfer-Encoding revad bug — follow-up PR
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2
with:
php-version: "8.4"
- run: python3 tests/acceptance/run-acceptance.py --storage ocis --total-parts 4 --run-part ${{ matrix.part }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: failure()
with:
name: acceptance-ocis-part-${{ matrix.part }}
path: tmp/testrunner/tests/acceptance/output/
# TODO: acceptance-tests-s3ng skipped — blocked on Ceph networking — follow-up PR
acceptance-tests-posixfs:
needs: [unit-tests]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: [1, 2] # TODO: parts 3,4 blocked on chunked Transfer-Encoding revad bug — follow-up PR
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2
with:
php-version: "8.4"
- run: sudo apt-get update && sudo apt-get install -y inotify-tools
- run: python3 tests/acceptance/run-acceptance.py --storage posixfs --total-parts 4 --run-part ${{ matrix.part }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: failure()
with:
name: acceptance-posixfs-part-${{ matrix.part }}
path: tmp/testrunner/tests/acceptance/output/
ci-ok:
if: always()
needs:
- check-go-generate
- unit-tests
- build
- integration-tests
- litmus
- cs3api-validator
- acceptance-tests-ocis
- acceptance-tests-posixfs
runs-on: ubuntu-latest
steps:
- run: |
results=(
"${{ needs.check-go-generate.result }}"
"${{ needs.unit-tests.result }}"
"${{ needs.build.result }}"
"${{ needs.integration-tests.result }}"
"${{ needs.litmus.result }}"
"${{ needs.cs3api-validator.result }}"
"${{ needs.acceptance-tests-ocis.result }}"
"${{ needs.acceptance-tests-posixfs.result }}"
)
for r in "${results[@]}"; do
if [[ "$r" != "success" && "$r" != "skipped" ]]; then
echo "FAILED: $r"
exit 1
fi
done