Skip to content

Commit b6c543f

Browse files
committed
refine actions config
1 parent e391207 commit b6c543f

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,44 @@ jobs:
3434
steps:
3535
- name: Install Chrome
3636
uses: browser-actions/setup-chrome@latest
37+
3738
- name: Check Chrome version
3839
run: chrome --version
40+
3941
- name: Check Chrome version
4042
run: google-chrome --version
43+
4144
- name: Set Display environment variable
4245
run: "export DISPLAY=:99"
46+
4347
- name: Checkout code
4448
uses: actions/checkout@v3
45-
# Add or replace dependency steps here
49+
4650
- name: Install Ruby and gems
4751
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
4852
with:
4953
ruby: 3.x
5054
bundler-cache: true
51-
# Add or replace database setup steps here
52-
- name: Set up database schema
53-
run: bin/rails db:schema:load
55+
5456
- name: Use Node.js 16.x
5557
uses: actions/setup-node@v3
5658
with:
5759
node-version: 16.x
58-
- name: Build
59-
run: |
60-
npm install --legacy-peer-deps
61-
bundle exec bin/webpacker
62-
# Add or replace test runners here
60+
- name: Install Node Packages
61+
run: npm install --legacy-peer-deps
62+
63+
- name: Set up database schema
64+
run: bin/rails db:schema:load
65+
66+
- name: Build i18n libraries
67+
run: bundle exec rake react_on_rails:locale
68+
69+
- name: Build webpacker chunks
70+
run: NODE_ENV=development bundle exec bin/webpacker
71+
6372
- name: Run tests with xvfb
6473
uses: GabrielBB/xvfb-action@v1
6574
with:
66-
run: bundle exec rake react_on_rails:locale
75+
run: bundle exec rake
6776
working-directory: ./ #optional
6877
options: ":99 -ac -screen scn 1600x1200x16"

0 commit comments

Comments
 (0)