-
Notifications
You must be signed in to change notification settings - Fork 699
39 lines (36 loc) · 1.01 KB
/
build.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest # prevents intermittent Chrome Headless error unlike ubuntu
name: Ruby ${{ matrix.version }}
strategy:
matrix:
version: ['3.0', '3.1', '3.2', '3.3']
steps:
- uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Set up Ruby ${{ matrix.version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.version }}
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Yarn Dependencies
run: yarn
- name: Run Yarn Tests
run: yarn test
- name: Run Ruby Tests
run: bundle exec rake test