-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 943 Bytes
/
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
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
javascript:
# This job only builds the JS,
# there are no tests yet.
name: Test JavaScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: '19.3.0'
- run: npm ci
- name: Build
run: |
npm run build:production -w lib/mayu/client
ruby:
name: Test Ruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.0"
bundler-cache: true
- name: Check types
run: bundle exec srb tc
- name: Run tests
run: bundle exec rake test
- uses: actions/upload-artifact@v4
with:
name: profile
path: profile/