From e5e9025a63246c0ed23521de7f06cd0744128c44 Mon Sep 17 00:00:00 2001 From: yivlad Date: Mon, 4 Sep 2023 16:58:17 +0200 Subject: [PATCH] Debug release job --- .github/workflows/CI-gnosis.yml | 39 ------------ .github/workflows/CI.yml | 102 -------------------------------- .github/workflows/PR.yml | 22 ------- .github/workflows/deploy.yml | 59 ------------------ .github/workflows/release.yml | 6 +- 5 files changed, 5 insertions(+), 223 deletions(-) delete mode 100644 .github/workflows/CI-gnosis.yml delete mode 100644 .github/workflows/CI.yml delete mode 100644 .github/workflows/PR.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/CI-gnosis.yml b/.github/workflows/CI-gnosis.yml deleted file mode 100644 index 05d599b30..000000000 --- a/.github/workflows/CI-gnosis.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: CI-gnosis -on: - workflow_dispatch: - push: - branches: - - master - - /.*[Gg]nosis.*/ -jobs: - # Same as `test-docs` on regular CI, but picks only tests with Gnosis safe to be run on master only. - # In order to run Gnosis safe tests on every PR, we would have to either: - # - Figure out a way to run Gnosis safe (with UI) locally, - # - or create multiple safes on testnets so that simultaneous job runs do not interfere with each other. - test-docs-gnosis: - runs-on: ubuntu-latest - timeout-minutes: 25 - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - run: npm i -g pnpm@7.1.9 - - run: pnpm install --frozen-lockfile --strict-peer-dependencies - - name: Build dependencies - run: pnpm run build - working-directory: packages - - name: Run playwright - run: | - set -e - pnpm run generate - pnpm start & - sleep 15 - xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm test:playwright -g "with Gnosis Safe" - env: - MAINNET_URL: ${{ secrets.MAINNET_PROVIDER_URL }} - DOCS_GNOSIS_OWNER_FIRST: ${{ secrets.DOCS_GNOSIS_OWNER_FIRST }} - DOCS_GNOSIS_OWNER_SECOND: ${{ secrets.DOCS_GNOSIS_OWNER_SECOND }} - DEBUG: usedapp* - working-directory: packages/docs diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml deleted file mode 100644 index 32b142298..000000000 --- a/.github/workflows/CI.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: CI -on: - pull_request: - push: - branches: - - master -jobs: - test: - strategy: - matrix: - node: ['14.x', '16.x'] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - run: npm i -g pnpm@7.1.9 - - run: pnpm install --frozen-lockfile --strict-peer-dependencies - - run: pnpm run lint - - run: pnpm run build - - run: pnpm run test - test-example: - runs-on: ubuntu-latest - timeout-minutes: 25 - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - run: npm i -g pnpm@7.1.9 - - run: pnpm install --frozen-lockfile --strict-peer-dependencies - - name: Build dependencies - run: | - set -e - pnpm run build - working-directory: packages - - name: Run playwright example - run: | - set -e - LOCALHOST_URL='http://localhost:8545' pnpm start & - xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm test:playwright - env: - MAINNET_URL: ${{ secrets.MAINNET_PROVIDER_URL }} - DEBUG: usedapp* - working-directory: packages/example - - name: Run playwright example-next - run: | - set -e - echo "NEXT_PUBLIC_LOCALHOST_URL=http://localhost:8545" > .env.local - echo "NEXT_PUBLIC_MAINNET_URL=${MAINNET_URL}" >> .env.local - pnpm dev & - xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm test:playwright - env: - MAINNET_URL: ${{ secrets.MAINNET_PROVIDER_URL }} - DEBUG: usedapp* - working-directory: packages/example-next - - name: Cleanup - if: always() - run: | - rm -rf .env.local - working-directory: packages/example-next - test-docs: - runs-on: ubuntu-latest - timeout-minutes: 25 - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - run: npm i -g pnpm@7.1.9 - - run: pnpm install --frozen-lockfile --strict-peer-dependencies - - name: Build dependencies - run: pnpm run build - working-directory: packages - - name: Run playwright - run: | - set -e - pnpm run generate - pnpm start & - sleep 15 - xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm test:playwright - env: - MAINNET_URL: ${{ secrets.MAINNET_PROVIDER_URL }} - DEBUG: usedapp* - working-directory: packages/docs - check-mixed-changesets: - timeout-minutes: 5 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - run: npm i -g pnpm@7.1.9 - - run: pnpm install --frozen-lockfile --filter="usedapp" - - run: pnpm changeset version diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml deleted file mode 100644 index 3d1950674..000000000 --- a/.github/workflows/PR.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: PR Naming -on: - pull_request: - types: [opened, edited, synchronize, reopened] -jobs: - emoji: - name: Pull Request should start from emoji - runs-on: ubuntu-latest - steps: - - uses: deepakputhraya/action-pr-title@v1.0.2 - with: - # Check if first character is an emoji, regex borrowed from https://medium.com/reactnative/emojis-in-javascript-f693d0eb79fb#.enomgcu63 - regex: '^(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])' - github_token: ${{ github.token }} - capitalised: - name: Pull Request name should start from Capital letter with space - runs-on: ubuntu-latest - steps: - - uses: deepakputhraya/action-pr-title@v1.0.2 - with: - regex: '^[^a-z]* [A-Z]' - github_token: ${{ github.token }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index e66bcd321..000000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Deploy -on: - pull_request: - branches-ignore: - - 'changeset-release/*' - push: - branches: - - master -jobs: - deploy-apps: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '16.14' - - run: npm i -g pnpm@7.1.9 - - run: pnpm install --frozen-lockfile - - run: pnpm build - - - name: Deploy usedapp-docs.netlify.app - uses: nwtgck/actions-netlify@v1.2 - with: - enable-commit-comment: true - enable-pull-request-comment: true - github-token: ${{ secrets.GITHUB_TOKEN }} - overwrites-pull-request-comment: true - production-deploy: ${{ github.event_name != 'pull_request' }} - publish-dir: packages/docs/build - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }} - - - name: Deploy example.usedapp.io - uses: nwtgck/actions-netlify@v1.2 - with: - enable-commit-comment: true - enable-pull-request-comment: true - github-token: ${{ secrets.GITHUB_TOKEN }} - overwrites-pull-request-comment: true - production-deploy: ${{ github.event_name != 'pull_request' }} - publish-dir: packages/example/build - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_EXAMPLE_SITE_ID }} - - - name: Deploy usedapp.io - uses: nwtgck/actions-netlify@v1.2 - with: - enable-commit-comment: true - enable-pull-request-comment: true - github-token: ${{ secrets.GITHUB_TOKEN }} - overwrites-pull-request-comment: true - production-deploy: ${{ github.event_name != 'pull_request' }} - publish-dir: packages/website/dist - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_LANDING_SITE_ID }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd5b1e4e8..12d7085e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - yivlad/debug-release-job jobs: release: @@ -27,8 +28,11 @@ jobs: - name: Install package manager run: npm i -g pnpm@7.1.9 + - name: Print git status + run: git status + - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Set git user run: |