Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
_extends: .github
7 changes: 1 addition & 6 deletions .github/workflows/basic-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ name: Vality basic linters
on:
pull_request:
branches:
- master
- main
push:
branches:
- master
- main
- "*"

jobs:
lint:
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/build.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/deploy.yml

This file was deleted.

19 changes: 8 additions & 11 deletions .github/workflows/erlang-pr.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: Erlang
name: Erlang build

on:
pull_request:
branches: [ '*' ]
push:
branches: [ master ]
branches:
- "*"

jobs:
build:
name: Build and verify
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2

- uses: valitydev/action-setup-thrift@b457b89c7e1e960ea354f510bce69a725d16c556
with:
thrift-version: '0.14.2'
- uses: valitydev/action-setup-thrift@v1

- uses: erlef/setup-beam@v1.9
- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: '24'
rebar3-version: '3.18'
otp-version: "24"
rebar3-version: "3.18"

- name: Restore PLT cache
uses: actions/cache@v2
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/frontend-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Frontend: PR'

on:
pull_request:
branches: ['*']

jobs:
configured:
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
check:
name: Check
runs-on: ubuntu-latest
needs: configured
if: needs.configured.outputs.exists == 'true'
steps:
- uses: actions/checkout@v3
- uses: valitydev/action-frontend/setup@v0.1
- uses: valitydev/action-setup-thrift@v1.0.0
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
- name: Codegen
run: npm run codegen
24 changes: 24 additions & 0 deletions .github/workflows/frontend-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Frontend: Publish'

on:
push:
branches: ['master', 'main']

jobs:
configured:
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
publish:
name: Publish
runs-on: ubuntu-latest
needs: configured
if: needs.configured.outputs.exists == 'true'
steps:
- uses: actions/checkout@v3
- uses: valitydev/action-frontend/setup@v0.1
- uses: valitydev/action-setup-thrift@v1.0.0
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
- name: Build
run: npm run codegen
- uses: valitydev/action-frontend/publish@v0.1
with:
npm-token: ${{ secrets.NPM_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/java-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Java deploy

on:
push:
branches:
- "master"
- "main"

jobs:
deploy:
uses: valitydev/java-workflow/.github/workflows/maven-thrift-deploy.yml@v1
secrets:
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
10 changes: 10 additions & 0 deletions .github/workflows/java-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Java build

on:
pull_request:
branches:
- "*"

jobs:
build:
uses: valitydev/java-workflow/.github/workflows/maven-thrift-build.yml@v1