36 lines (33 loc) · 1.06 KB
/
tests.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
###############################################################################
# .github/workflows/tests.yml
###############################################################################
name: "pandoc-ruby · Test Suite"
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
workflow_dispatch:
jobs:
test-ubuntu-latest:
name: "Test: Ubuntu Latest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
# https://github.com/ruby/setup-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
bundler-cache: true
- name: "Setup Environment"
run: |
sudo apt-get update
sudo apt-get -yqq install libpq-dev build-essential libcurl4-openssl-dev
curl -LO https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-1-amd64.deb
sudo dpkg -i pandoc-3.1.9-1-amd64.deb
gem install bundler
bundle install --jobs 4 --retry 3
- name: "Run tests"
run: |
bundle exec rake