-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (36 loc) · 910 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
43
44
45
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
# Specify to ensure "pipefail and errexit" are set.
# Ref: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
shell: bash
jobs:
test:
runs-on: ubuntu-latest
env:
RUBYLIB: ${{ github.workspace }}/lib
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: require-test-files
run: |
export VESPA_FACTORY_NO_AUTORUNNER=1
for FILE in $(find tests -name "*.rb"); do
ruby -I lib -I tests -I . -e "require '$FILE'"
done
- name: run-unit-tests
run: |
set -e
cd ${RUBYLIB}
ruby test/testrunner.rb
exit $?