test: automated cases for smoke tcs tc1618 tc1677 tc1605 tc1412 #675
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 To Feature Branch | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
outputs: | |
dappUrl: ${{ steps.deploy.outputs.details_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
npm set-script prepare "" | |
npm ci --force | |
- name: Lint | |
run: | | |
npm run lint | |
- name: Setup .env | |
run: | | |
echo "WALLET_CONNECT_PROJECT_ID=${{ secrets.WALLET_CONNECT_PROJECT_ID }}" > .env | |
echo "ANKR_TOKEN=${{ secrets.ANKR_TOKEN }}" >> .env | |
- name: Build | |
run: | | |
npm run generate | |
- name: Deploy | |
uses: matter-labs/action-hosting-deploy@main | |
id: deploy | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAGING_ZKSYNC_DAPP_WALLET_V2 }}" | |
projectId: staging-zksync-dapp-wallet-v2 | |
expires: 7d | |
e2e: | |
needs: build | |
uses: ./.github/workflows/e2e.yml | |
name: E2E | |
secrets: inherit | |
with: | |
targetUrl: ${{ needs.build.outputs.dappUrl }} | |
network: Goerli | |
publish_to_allure: true | |
environmentTags: "" |