CI/CD
This commit is contained in:
parent
85b7cf95f9
commit
fb5e2af8c2
1 changed files with 27 additions and 2 deletions
|
|
@ -1,10 +1,12 @@
|
|||
on: [push]
|
||||
|
||||
env:
|
||||
SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
name: Text
|
||||
name: Run tests
|
||||
container: code.hohl.cloud/jwa11y/a11yist:ci
|
||||
services:
|
||||
chrome:
|
||||
|
|
@ -25,8 +27,31 @@ jobs:
|
|||
submodules: recursive
|
||||
- run: bundle install
|
||||
- run: mv /app/node_modules .
|
||||
- run: pwd && ls -la && ls -la /app
|
||||
- run: bundle exec rails test
|
||||
|
||||
system_test:
|
||||
runs-on: docker
|
||||
name: Run system tests
|
||||
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: bundle exec rails test:system
|
||||
|
||||
continous-delivery:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue