File: ci.yml

package info (click to toggle)
tdiary 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 2
file content (43 lines) | stat: -rw-r--r-- 1,060 bytes parent folder | download
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
name: ubuntu

on: [push, pull_request]

jobs:
  build:
    name: build (${{ matrix.ruby }}/${{ matrix.test_mode }})
    strategy:
      matrix:
        ruby: [ '3.4', '3.3', '3.2', '3.1' ]
        test_mode: [ rack, gem ]
    runs-on: ubuntu-latest
    services:
      memcached:
        image: memcached:latest
        ports:
          - 11211:11211
    steps:
    - uses: actions/checkout@v4
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - uses: actions/setup-node@v4
      with:
        node-version: '22'
      if: matrix.test_mode == 'rack'
    - name: Install dependencies
      run: |
        echo 'gemspec' > Gemfile.local
        bundle install --without server --jobs=3 --retry=3
        npm install
    - name: Run test
      run: bundle exec tdiary test
      if: matrix.test_mode == 'gem'
    - name: Run test (rack)
      run: |
        bundle exec rake spec test
        npm install
        npm test
      env:
        OPENSSL_CONF: /etc/ssl
      if: matrix.test_mode == 'rack'