mirror of
https://github.com/akuker/RASCSI.git
synced 2026-10-25 12:02:59 +00:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v5...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
name: Docker Web Integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- main
|
|
paths:
|
|
- '.github/workflows/web.yml'
|
|
- 'docker/**'
|
|
- 'go/**'
|
|
- 'proto/**'
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- main
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
paths:
|
|
- '.github/workflows/web.yml'
|
|
- 'docker/**'
|
|
- 'go/**'
|
|
- 'proto/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
integration:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: docker
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Set Docker bind-mount identity
|
|
run: |
|
|
echo "PISCSI_DOCKER_UID=$(id -u)" >> "$GITHUB_ENV"
|
|
echo "PISCSI_DOCKER_GID=$(id -g)" >> "$GITHUB_ENV"
|
|
|
|
- name: Build and launch the web stack
|
|
run: docker compose -f docker-compose.ci.yml up --build --detach
|
|
|
|
- name: Run Go web tests
|
|
run: docker compose -f docker-compose.ci.yml run --rm go-test
|
|
|
|
- name: Output container logs
|
|
if: success() || failure()
|
|
run: |
|
|
docker compose -f docker-compose.ci.yml logs web > web.log
|
|
docker compose -f docker-compose.ci.yml logs -t | sort -u -k 3 > combined.log
|
|
|
|
- name: Upload web log
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: web.log
|
|
path: docker/web.log
|