Update README.md #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Delivery | |
'on': | |
push: | |
branches: | |
- master | |
jobs: | |
build_and_preview: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm ci | |
- name: Check linters | |
run: npm run lint | |
- name: Check tests | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: | | |
npm run test | |
npm run test:coverage | |
- name: Build library | |
env: | |
NODE_ENV: production | |
run: npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RESERVANDO_CLUB }}' | |
channelId: live | |
projectId: reservando-club | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |