Skip to content

Commit

Permalink
update jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko committed May 31, 2020
1 parent 57b8458 commit f511fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,86 +40,10 @@ jobs:
with:
name: lib
path: ${{ github.workspace }}/lib
node10:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: build
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
NODE_VERSION: 10
steps:
- name: Сheckout repo
uses: actions/checkout@v2
- name: Unarchiving lib directory
uses: actions/download-artifact@v2
with:
name: lib
path: ${{ github.workspace }}/lib
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Install emulator and test library
run: sudo npm install firebase-tools nyc mocha -g
- name: Set service account
run: echo $SERVICE_ACCOUNT>serviceAccount.json
- name: Run emulator
run: npm run cov
node12:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build, node10]
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
NODE_VERSION: 12
steps:
- name: Сheckout repo
uses: actions/checkout@v2
- name: Unarchiving lib directory
uses: actions/download-artifact@v2
with:
name: lib
path: ${{ github.workspace }}/lib
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Install emulator and test library
run: sudo npm install firebase-tools nyc mocha -g
- name: Set service account
run: echo $SERVICE_ACCOUNT>serviceAccount.json
- name: Run emulator
run: npm run cov
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build, node10, node12]
needs: [build]
env:
NODE_VERSION: 10
steps:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.2.0 / 2020-05-31
# 1.2.1 / 2020-05-31

## :tada: Enhancements
- Added type of binary to firestore converter (full support types of firestore)
Expand Down

0 comments on commit f511fcf

Please sign in to comment.