2024-07-22 22:40:56 +02:00
|
|
|
on: [push]
|
2024-07-23 20:22:46 +02:00
|
|
|
env:
|
|
|
|
|
SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub
|
2024-07-22 22:40:56 +02:00
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
runs-on: docker
|
|
|
|
|
name: Text
|
2024-07-22 23:05:10 +02:00
|
|
|
container: code.hohl.cloud/jwa11y/a11yist:ci
|
2024-07-23 19:58:21 +02:00
|
|
|
services:
|
|
|
|
|
chrome:
|
|
|
|
|
image: selenium/standalone-chrome
|
2024-07-22 22:40:56 +02:00
|
|
|
steps:
|
2024-07-22 22:48:43 +02:00
|
|
|
- name: Cache repository
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
id: cache-repository
|
|
|
|
|
with:
|
2024-07-22 23:04:02 +02:00
|
|
|
path: .
|
2024-07-22 22:48:43 +02:00
|
|
|
key: ${{ runner.os }}-repository-${{ github.sha }}
|
|
|
|
|
restore-keys: |
|
2024-07-22 22:51:28 +02:00
|
|
|
${{ runner.os }}-repository-
|
2024-07-22 22:40:56 +02:00
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
with:
|
2024-07-22 23:04:02 +02:00
|
|
|
path: .
|
2024-07-22 22:40:56 +02:00
|
|
|
submodules: recursive
|
|
|
|
|
- run: bundle install
|
2024-07-22 23:14:10 +02:00
|
|
|
- run: mv /app/node_modules .
|
|
|
|
|
- run: pwd && ls -la && ls -la /app
|
2024-07-22 22:40:56 +02:00
|
|
|
- run: bundle exec rails test
|
2024-07-23 19:58:21 +02:00
|
|
|
- run: bundle exec rails test:system
|