Skip to content

Update github actions workflow #65

Update github actions workflow

Update github actions workflow #65

Workflow file for this run

name: Test
on:
push:
workflow_dispatch:
jobs:
test:
name: build_test
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
target: ['3.0.1', '3.0.1/alpine']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: docker/build-push-action@v4
with:
context: ./${{ matrix.target }}
tags: redmica
push: false
- name: Build image
run: |
docker run -d --name=test-redmica-container -p 3000:3000 redmica
- name: Wait for starting
run: sleep 30
- name: Test
run: |
if [[ "`echo ${{ matrix.target }} | grep alpine`" ]]; then
docker exec --tty test-redmica-container bash -c "apk update;apk add curl;curl localhost:3000 | grep redmine"
else
docker exec --tty test-redmica-container bash -c "apt-get update;apt-get install -y curl;curl localhost:3000 | grep redmine"
fi