-
Notifications
You must be signed in to change notification settings - Fork 26
39 lines (31 loc) · 990 Bytes
/
main.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: ruby
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Run standard
run: bundle exec rake standard
- name: Run unit tests
run: bundle exec rake spec
- name: Cache firebase tools
uses: actions/cache@v2
id: cache-firebase
with:
path: tools/firebase
key: ${{ runner.os }}-firebase-tools
- name: Install firebase tools
if: steps.cache-firebase.outputs.cache-hit != 'true'
run: |
mkdir -p tools
curl -o tools/firebase -L https://firebase.tools/bin/linux/latest
chmod +rx tools/firebase
- name: Run integration tests
run: tools/firebase emulators:exec --only auth --project test-adminsdk-project 'bundle exec rake integration'