-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (40 loc) · 1.19 KB
/
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
40
41
name: Firestore Storage CI
on: [push]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
GOOGLE_APPLICATION_CREDENTIALS: '/tmp/google-credentials-sa-node-${{ matrix.node }}-${{ matrix.package }}.json'
strategy:
matrix:
package: [ core, firestore, indexes, function-utils ]
node: [ 16 ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: ^8.6.5
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build package
run: |
cd packages/${{ matrix.package }}
pnpm build
- name: Test package
env:
FIRESTORE_EMULATOR_HOST: 'localhost:8080'
run: |
cd packages/${{ matrix.package }}
pnpm test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: "packages/${{ matrix.package }}/test-results.xml"