-
Notifications
You must be signed in to change notification settings - Fork 42
54 lines (45 loc) · 1.15 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: build
on:
push:
branches:
- '**/*'
workflow_dispatch:
jobs:
build:
name: build
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.2', '3.3']
steps:
# https://github.com/actions/checkout
- name: Checkout the repository
uses: actions/checkout@v4
# https://github.com/ruby/setup-ruby
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
# https://github.com/asdf-vm/actions#setup
- name: Install asdf
uses: asdf-vm/actions/setup@v3
with:
asdf_branch: v0.14.1
- name: Install Node.js with asdf
run: |
asdf plugin add nodejs
asdf install nodejs
- name: Install Node.js dependencies
run: |
npm ci
- name: Build the frontend application
run: |
npm run build
- name: Run automated tests
run: |
bundle exec rspec
- name: Ensure there are no uncommitted changes
run: |
git status --porcelain
test -z "$(git status --porcelain)"