-
Notifications
You must be signed in to change notification settings - Fork 384
48 lines (38 loc) · 973 Bytes
/
js_test.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: "JS CI"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18.x]
ruby: [3.1.2]
env:
RAILS_ENV: test
NODE_ENV: test
USE_COVERALLS: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: |
bundle install
yarn install --frozen-lockfile --non-interactive --prefer-offline
- name: Build i18n libraries
run: bundle exec rake react_on_rails:locale
- name: Run js tests
run: bundle exec rake ci:js