Skip to content

Commit d64a120

Browse files
committed
Create rubyonrails.yml
1 parent e88df52 commit d64a120

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow uses actions that are not certified by GitHub. They are
2+
# provided by a third-party and are governed by separate terms of service,
3+
# privacy policy, and support documentation.
4+
#
5+
# This workflow will install a prebuilt Ruby version, install dependencies, and
6+
# run tests and linters.
7+
name: 'CI'
8+
on:
9+
push:
10+
branches: [ 'main' ]
11+
pull_request:
12+
branches: [ 'main' ]
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
- name: Build container
20+
run: docker compose build
21+
- name: Boot containers
22+
run: docker-compose up -d app chrome_server
23+
- name: Run tests
24+
run: docker compose exec -T app bin/rails test
25+
- name: Run system tests
26+
run: docker compose exec -T app bin/rails app:test:system

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ GEM
221221

222222
PLATFORMS
223223
aarch64-linux
224+
arm64-darwin-22
225+
x86_64-linux
224226

225227
DEPENDENCIES
226228
capybara

0 commit comments

Comments
 (0)