1313 name : Ruby ${{ matrix.ruby }}
1414 strategy :
1515 matrix :
16- ruby : ['3.2 ']
16+ ruby : ['3.4 ']
1717 fail-fast : false
1818 runs-on : ubuntu-latest
1919 env :
@@ -22,21 +22,21 @@ jobs:
2222 timeout-minutes : 20
2323 steps :
2424 - name : Checkout source
25- uses : actions/checkout@v6
25+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626 - name : Setup ruby
27- uses : ruby/setup-ruby@v1
27+ uses : ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # v1.307.0
2828 with :
2929 ruby-version : ${{ matrix.ruby }}
3030 rubygems : 3.4.10
3131 bundler-cache : true
3232 - name : Cache node modules
33- uses : actions/setup-node@v6
33+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3434 with :
3535 cache : yarn
3636 - name : Install packages
3737 run : |
3838 sudo apt-get -yqq update
39- sudo apt-get -yqq install memcached libvips-dev
39+ sudo apt-get -yqq install memcached libvips-dev xvfb mesa-utils libgl1-mesa-dri postgresql-postgis
4040 - name : Install node modules
4141 run : bundle exec bin/yarn install
4242 - name : Create database
@@ -63,20 +63,26 @@ jobs:
6363 timeout-minutes : 10
6464 - name : Create tmp/pids directory
6565 run : mkdir -p tmp/pids
66- - name : Run ruby on rails tests
66+ - name : Enable virtual display
67+ run : Xvfb :99 -screen 0 1024x768x24 &
68+ - name : Run tests
6769 run : bundle exec rails test:all
70+ env :
71+ DISPLAY : " :99"
6872 continue-on-error : true
6973 - name : Run javascript tests
7074 run : bundle exec teaspoon
75+ env :
76+ DISPLAY : " :99"
7177 - name : Upload screenshots
72- uses : actions/upload-artifact@v6
78+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7379 if : failure()
7480 with :
75- name : screenshots-${{ github.run_attempt }}
81+ name : screenshots
7682 path : tmp/screenshots
7783 if-no-files-found : ignore
7884 - name : Report completion to Coveralls
79- uses : coverallsapp/github-action@v2
85+ uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
8086 with :
8187 github-token : ${{ secrets.github_token }}
8288 flag-name : ruby-${{ matrix.ruby }}
8995 timeout-minutes : 1
9096 steps :
9197 - name : Report completion to Coveralls
92- uses : coverallsapp/github-action@v2
98+ uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
9399 with :
94100 github-token : ${{ secrets.github_token }}
95101 parallel-finished : true
0 commit comments