Skip to content

Update Live demo link in README.md (#773) #1550

Update Live demo link in README.md (#773)

Update Live demo link in README.md (#773) #1550

Workflow file for this run

#SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (C) 2022-2023 Dyne.org foundation <foundation@dyne.org>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
name: πŸ§ͺ & πŸš€
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
name: Test on Node
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Git Sumbodule Update
run: |
git submodule update --init
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm i --legacy-peer-deps
- name: Write local env file
run: cp .env.example .env.local
- run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
report:
name: πŸ“‹ Test reports
needs: test
if: always()
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download zipped HTML report
uses: actions/download-artifact@v2
with:
name: playwright-report
path: playwright-report/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: playwright-report/
- name: Deploy Playwright result to Github Pages
id: deployment
uses: actions/deploy-pages@v2
deploy:
name: πŸš€ Deploy on staging server
needs: test
if: github.ref == 'refs/heads/main'
uses: interfacerproject/workflows/.github/workflows/node-staging-deploy.yml@main
secrets: inherit
with:
deploy_url: https://interfacer-gui-staging.dyne.org