-
Notifications
You must be signed in to change notification settings - Fork 30
49 lines (39 loc) · 1.06 KB
/
ci.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
49
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
APP_HOST: 0.0.0.0
APP_URL: http://localhost:4567
RACK_ENV: test
steps:
- name: System Update
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y curl libjemalloc2 imagemagick
- name: Chromium Setup
uses: nanasess/setup-chromedriver@v2
- name: Chromium Start
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.head_ref}}
- name: Git Default Branch
run: git config set init.defaultBranch master
- name: Ruby Setup
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build
run: bundle exec rake
- name: SimpleCov Report
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage