Skip to content

Commit

Permalink
Merge pull request #1 from consensys-vertical-apps/mmi-3203-github-mi…
Browse files Browse the repository at this point in the history
…gration

MMI-3203: Migrate to GitHub
  • Loading branch information
cdivitotawela authored Nov 8, 2023
2 parents 8182383 + e3f5cf7 commit 7be11a0
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 85 deletions.
48 changes: 0 additions & 48 deletions .circleci/config.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .circleci/scripts/collect-har-artifact.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .circleci/scripts/deps-install.sh

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release

on:
push:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
container:
image: node:14-alpine

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
rm -rf public
mkdir public
yarn
yarn build
cp -r dist/* public
cp dist/index.html dist/404.html
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: mmi-test-dapp-${{ github.sha }}
path: ./public
retention-days: 1

deploy:
runs-on: ubuntu-latest
needs: ['build']
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: mmi-test-dapp-${{ github.sha }}
path: ./public

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './public'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
35 changes: 35 additions & 0 deletions .github/workflows/validate_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Validate PR

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
container:
image: node:14-alpine

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
rm -rf public
mkdir public
yarn
yarn build
cp -r dist/* public
cp dist/index.html dist/404.html
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Dependency Review
uses: actions/dependency-review-action@v3
with:
fail-on-severity: "high"
vulnerability-check: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package-lock.json
dist/
node_modules
public
.vscode
20 changes: 0 additions & 20 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit 7be11a0

Please sign in to comment.