-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (37 loc) · 1.32 KB
/
ci.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
name: CI
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f
with:
ruby-version: '3.0.6'
- name: Install dependencies
run: bundle install
- name: Build gem
run: rake build
# Enable this section to allow debugging via SSH
#- name: Setup upterm session
#uses: lhotari/action-upterm@v1
#with:
### limits ssh access and adds the ssh public key for the user which triggered the workflow
#limit-access-to-actor: true
- name: Install gem
run: cd pkg && gem install --local *.gem
- name: Run tests
run: bundle exec rspec
env: # Or as an environment variable
SNOWFLAKE_URI: ${{ secrets.SNOWFLAKE_URI }}
SNOWFLAKE_ORGANIZATION: ${{ secrets.SNOWFLAKE_ORGANIZATION }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DEFAULT_WAREHOUSE: $${{ secrets.SNOWFLAKE_DEFAULT_WAREHOUSE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_PRIVATE_KEY: ${{ secrets.SNOWFLAKE_CLIENT_TEST_PRIVATE_KEY }}