fix: email template for new environment #1556
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
#SPDX-License-Identifier: AGPL-3.0-or-later | |
# Copyright (C) 2022-2023 Dyne.org foundation <[email protected]>. | |
# | |
# 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/[email protected] | |
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 |