-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.08 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
name: Run Tests
on: push
jobs:
# Run tests
test:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/umich_catalog_indexing/Gemfile
steps:
- uses: actions/checkout@v3
- name: Set up ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
env:
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{secrets.GH_PACKAGE_READ_TOKEN}}
- name: Create .env file
working-directory: ./umich_catalog_indexing
run: cat .env-dev-values .env-example > .env
- name: Load .env file
uses: xom9ikk/dotenv@v2
with:
path: umich_catalog_indexing
- name: copy libLocInfo.yaml
run: |
cp .github/fixtures/libLocInfo.yaml umich_catalog_indexing/lib/translation_maps/umich/libLocInfo.yaml
cp .github/fixtures/electronic_collections.yaml umich_catalog_indexing/lib/translation_maps/umich/electronic_collections.yaml
- name: Run tests
working-directory: ./umich_catalog_indexing
run: bundle exec rspec