Skip to content

refactor: ♻️ use backend-provided resource specs instead of environment variables #1642

refactor: ♻️ use backend-provided resource specs instead of environment variables

refactor: ♻️ use backend-provided resource specs instead of environment variables #1642

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@v4.6.0
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@v4.1.8
# with:
# name: playwright-report
# path: playwright-report/
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# 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