🔄 Synced local '.github/workflows/' with remote 'workflows/proto/'

This commit is contained in:
undefined 2023-02-13 01:18:20 +00:00
parent 0d7873e321
commit d00a221f28
5 changed files with 64 additions and 2 deletions

17
.github/workflows/erlang-pr.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Erlang build
on:
pull_request:
branches:
- "*"
jobs:
build:
uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1
with:
otp-version: 24
rebar-version: 3
use-thrift: true
thrift-version: 0.14.2.3
run-eunit: false
run-common-test: false

21
.github/workflows/frontend-pr.yml vendored Normal file
View File

@ -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.1
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
- name: Codegen
run: npm run codegen

24
.github/workflows/frontend-publish.yml vendored Normal file
View File

@ -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.1
- 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 }}

View File

@ -8,7 +8,7 @@ on:
jobs:
deploy:
uses: valitydev/java-workflow/.github/workflows/maven-thrift-deploy.yml@v1
uses: valitydev/java-workflow/.github/workflows/maven-thrift-deploy.yml@v2
secrets:
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}

View File

@ -7,4 +7,4 @@ on:
jobs:
build:
uses: valitydev/java-workflow/.github/workflows/maven-thrift-build.yml@v1
uses: valitydev/java-workflow/.github/workflows/maven-thrift-build.yml@v2