a11yist/.forgejo/workflows/test.yml
david 154e11e768
All checks were successful
/ Checkout (push) Successful in 16s
/ Text (push) Successful in 2m12s
system tests
2024-07-23 20:22:46 +02:00

30 lines
812 B
YAML

on: [push]
env:
SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub
jobs:
test:
runs-on: docker
name: Text
container: code.hohl.cloud/jwa11y/a11yist:ci
services:
chrome:
image: selenium/standalone-chrome
steps:
- name: Cache repository
uses: actions/cache@v4
id: cache-repository
with:
path: .
key: ${{ runner.os }}-repository-${{ github.sha }}
restore-keys: |
${{ runner.os }}-repository-
- name: Checkout repository
uses: actions/checkout@v4
with:
path: .
submodules: recursive
- run: bundle install
- run: mv /app/node_modules .
- run: pwd && ls -la && ls -la /app
- run: bundle exec rails test
- run: bundle exec rails test:system