Skip to content

Commit

Permalink
Merge branch 'main' into feat/rocstar
Browse files Browse the repository at this point in the history
  • Loading branch information
gluneau authored May 16, 2023
2 parents 15c9aca + a14e6dd commit ea2dafe
Show file tree
Hide file tree
Showing 1,484 changed files with 323,359 additions and 5,590 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
/node_modules
.eslintrc.js
babel.config.js
/src-ssr
/src-ssr
/tests/polkadot_wallet
/tests/metamask_wallet
5 changes: 0 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
- [ ] documentation changes
- [ ] tested on mobile devices

**Release notes:**

- (ex: feat: updated dApp staking to V2)
- (ex: fix: modified styling bugs on the Assets page)

**This pull request makes the following changes:**

**Adds**
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/broken-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Broken Links

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Trigger the workflow every month

jobs:
build_and_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn && yarn build

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.7.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --verbose --exclude-path ./node_modules/ "./**/*.js" "./**/*.ts" "./**/*.html" "./**/*.scss"

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue
32 changes: 32 additions & 0 deletions .github/workflows/deploy-to-release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Release hotfix
on:
workflow_dispatch:
branches:
- release-hotfix

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
# deploy to prod
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: release-hotfix
token: ${{ env.GH_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ASTAR_APPS }}'
channelId: live
projectId: astar-apps
59 changes: 57 additions & 2 deletions .github/workflows/pull-request-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,74 @@
# https://github.com/firebase/firebase-tools

name: Create Firebase Hosting Preview on PR
'on': pull_request
on:
pull_request:
inputs:
astar_tag:
description: 'Release tag version for astar collator'
required: true
default: '4.47.1'
polkadot_tag:
description: 'Release tag version for polkadot relay chain'
required: true
default: '0.9.37'
zombienet_tag:
description: 'Release tag version for zombinet tool'
required: true
default: '1.3.35'
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.deploy_firebase_hosting_channel.outputs.details_url }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install -g yarn
- run: yarn && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
- id: deploy_firebase_hosting_channel
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ASTAR_APPS }}'
projectId: astar-apps
e2etest:
timeout-minutes: 60
runs-on: ubuntu-latest
needs: build_and_preview
steps:
- uses: actions/checkout@v3
- name: Download pre-built linux collator binary
run: |
wget https://github.com/AstarNetwork/Astar/releases/download/v4.47.1/astar-collator-v4.47.1-ubuntu-x86_64.tar.gz
tar -xvf astar-collator-*-ubuntu-x86_64.tar.gz
chmod +x ./astar-collator
- name: Download Polkadot relay chain binary
run: |
wget https://github.com/paritytech/polkadot/releases/download/v0.9.37/polkadot
chmod +x ./polkadot
- name: Download Zombinet testing binary
run: |
wget https://github.com/paritytech/zombienet/releases/download/v1.3.35/zombienet-linux-x64
chmod +x ./zombienet-linux-x64
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
# run: BASE_URL='${{needs.build_and_preview.outputs.output1}}' HEADLESS='true' ENDPOINT='ws://127.0.0.1:50001' npx playwright test --project=chromium
run: BASE_URL='${{needs.build_and_preview.outputs.output1}}' yarn playwright:ci
# working-directory: ./tests
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
39 changes: 39 additions & 0 deletions .github/workflows/s3-hotfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to Release hotfix-S3
on:
workflow_dispatch:
branches:
- release-hotfix

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
# deploy to prod
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: release-hotfix
token: ${{ env.GH_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn && yarn build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/spa s3://astar-apps --delete
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: 'Merge release-hotfix to main'
body: 'This is an auto-generated PR to merge release-hotfix to main'
branch: main
base: release-hotfix
delete-branch: false
36 changes: 36 additions & 0 deletions .github/workflows/s3-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to S3-Production
'on':
workflow_dispatch:
inputs:
ref:
description: 'Release Tag or branch'
required: true
default: 'v0.0.1'

jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: '${{ github.event.inputs.ref }}'
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn && yarn build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/spa s3://astar-apps --delete
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: 'Merge main to release-hotfix'
body: 'This is an auto-generated PR to merge main to release-hotfix'
branch: release-hotfix
base: main
delete-branch: false
22 changes: 22 additions & 0 deletions .github/workflows/s3-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to S3 Staging
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn && yarn build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/spa s3://astar-apps-staging --delete
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,15 @@ yarn-error.log*

# Firebase cache
.firebase/

# End-to-end tests
test-results/
playwright-report/
playwright/.cache/


# Zombienet binaries
zombienet-macos
polkadot
astar-collator

9 changes: 9 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore all files
file://.*

# Twitter its API does not like us
https://twitter.com/*

# quasar
https://*.quasar.dev/*
https://quasar.dev/*
Loading

0 comments on commit ea2dafe

Please sign in to comment.