Skip to content

Use testcontainers for e2e tests #313

Use testcontainers for e2e tests

Use testcontainers for e2e tests #313

Workflow file for this run

name: Deploy page
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-faucet:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v2
with:
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn run check
- name: Install Playwright
run: npx playwright install
- run: yarn run test
- run: yarn run build
env:
PUBLIC_CAPTCHA_KEY: 6LdU5kckAAAAANktvvAKJ0auYUBRP0su94G7WXwe
PUBLIC_FAUCET_ROCOCO_URL: https://ink-docs-rococo-faucet.parity-testnet.parity.io/drip/web
PUBLIC_FAUCET_WESTEND_URL: "https://westend-faucet.polkadot.io/drip/web"
GITHUB_PAGES: "/${{ github.event.repository.name }}"
STATIC: true
BASE: "/polkadot-testnet-faucet"
- uses: actions/upload-artifact@master
with:
name: faucet
path: ./client/build
if-no-files-found: error
deploy-to-github-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: [build-faucet]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download page
uses: actions/download-artifact@master
with:
name: faucet
path: ./dist
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1