fix: validate address #125
Workflow file for this run
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: "Deploy preview" | |
"on": pull_request | |
jobs: | |
build_and_preview: | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
runs-on: ubuntu-latest | |
environment: dev | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Enable yarn cache" | |
uses: c-hive/gha-yarn-cache@v2 # using cache | |
- name: "Setup node@16" | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: "Install dependencies" | |
run: | | |
yarn set version 3.1.1 | |
yarn install | |
- name: "Lint" | |
run: | | |
yarn lint --max-warnings 0 | |
- name: "Build: dapp" | |
run: yarn run ci:build:goerli | |
- name: "Deploy: preview" | |
uses: matter-labs/action-hosting-deploy@main | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZSYNC_DAPP_CHECKOUT_DEV }}" | |
target: staging | |
projectId: zsync-dapp-checkout | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |