-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 981 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI GitHub Action
on: push
jobs:
test:
runs-on: ubuntu-latest
services:
selenium:
image: selenium/standalone-chrome
ports:
- 4444:4444
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.3' # or your preferred Ruby version
bundler-cache: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb libnss3-dev
gem install bundler
bundle install
- name: Run rubocop
run: |
bundle exec rubocop
- name: Run tests
env:
DISPLAY: :99.0
run: |
Xvfb :99 -ac &
bundle exec rspec
- name: Coveralls
uses: coverallsapp/github-action@v2
- name: Brakeman linter
run: bundle exec brakeman --no-exit-on-warn --no-exit-on-error
- name: 'Run Bundler Audit'
run: bundle exec bundler-audit