Skip to content

Commit

Permalink
Use shared GHA (#125)
Browse files Browse the repository at this point in the history
* Add mandatory noop test cmd to npm
  • Loading branch information
dincho authored Nov 14, 2023
1 parent 787ec54 commit 2b9328e
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 23 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: integration

on:
push:
branches: [ master ]

jobs:
validate:
uses: aeternity/github-actions/.github/workflows/_validate-npm.yml@v2.0.0
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
needs: [ validate ]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: contracts
19 changes: 0 additions & 19 deletions .github/workflows/main.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/pull-request-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pull-request-cleanup

on:
pull_request:
branches: [ master ]
types: [ closed ]

jobs:
rollback:
uses: aeternity/github-actions/.github/workflows/_rollback-gitops.yml@v2.0.0
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-contracts"
delete-tag:
uses: aeternity/github-actions/.github/workflows/_delete-tag-docker.yml@v2.0.0
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
DOCKERHUB_TAG: "pr-${{ github.event.number }}"
24 changes: 24 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pull-request

on:
pull_request:
branches: [ master ]

jobs:
validate:
uses: aeternity/github-actions/.github/workflows/_validate-npm.yml@v2.0.0
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
needs: [ validate ]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-contracts"
7 changes: 4 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: release-please

on:
push:
branches:
- master
name: release-please
branches: [ master ]

jobs:
release-please:
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release

on:
push:
tags: [ v* ]

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
secrets: inherit
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: prd
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_TAG: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: contracts
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"lint": "eslint src"
"lint": "eslint src",
"test": "echo \"All tests passed\""
},
"dependencies": {
"@aeternity/aepp-sdk": "^13.2.1",
Expand Down

0 comments on commit 2b9328e

Please sign in to comment.