Bump minimist and codelyzer #48
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on PR | |
on: [pull_request] | |
env: | |
node-version: 14.x | |
jobs: | |
build_and_preview: | |
name: Build, Test, and Preview | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
key: ${{ runner.os }}-test-suite-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-test-suite-${{ env.cache-name }}- | |
${{ runner.os }}-test-suite- | |
${{ runner.os }}- | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ env.node-version }} | |
- name: Install packages | |
run: npm ci | |
- name: Build | |
run: npm run ng -- build kodenames --configuration=production | |
env: | |
CI: true | |
- name: Test | |
run: npm run test-headless | |
- name: Deploy Preview | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KODENAMES_A9BDA }}' | |
projectId: kodenames-a9bda | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |