Skip to content

Add via to docker

Add via to docker #1

Workflow file for this run

name: test
on:
push:
branches:
- master
paths:
- .github/workflows/docker-test.yml
- "*.dockerfile"
- cypress/**
- cypress.config.ts
- files/**
- package.json
- package-lock.json
pull_request:
paths:
- .github/workflows/docker-test.yml
- "*.dockerfile"
- cypress/**
- cypress.config.ts
- files/**
- package.json
- package-lock.json
jobs:
test:
name: Test Docker image
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
dockerfile: [apache, apache-php8.0, nginx, nginx-php8.0]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install Cypress dependencies
run: npm ci
- name: Build and start Baikal
run: docker run --rm -dp 80:80 $(docker build -qf ${{ matrix.dockerfile }}.dockerfile .)
- name: Run Cypress tests
run: npm run test
- name: Archive test results
if: always()
uses: actions/upload-artifact@v3
with:
name: cypress-results-${{ matrix.dockerfile }}
path: |
cypress/screenshots
cypress/videos