forked from hashgraph/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hashgraph/main
Update from upstream
- Loading branch information
Showing
1,351 changed files
with
162,169 additions
and
38,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,31 +9,51 @@ on: | |
|
||
jobs: | ||
runService: | ||
runs-on: ubuntu-latest | ||
name: Run Service | ||
runs-on: [self-hosted, Linux, medium, ephemeral] | ||
strategy: | ||
matrix: | ||
node-version: [ 20.x ] | ||
mongodb-version: [ 7.0.5 ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 #v4.0.2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup Yarn | ||
uses: Borales/actions-yarn@3766bb1335b98fb13c60eaf358fe20811b730a88 # v5.0.0 | ||
with: | ||
cmd: install | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Start NatsMQ | ||
uses: onichandame/nats-action@master | ||
uses: onichandame/nats-action@a8144f9009c5f67c39edd6a50f9de659c44bd135 # v0.0.0 | ||
with: | ||
port: "4222" | ||
|
||
- name: Config Repo | ||
run: | | ||
git config --global user.name "envision-ci-agent" | ||
git config --global user.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${{ secrets.DOC_UPDATE_API_KEY }}@github.com/$GITHUB_REPOSITORY | ||
git checkout "${GITHUB_REF:11}" | ||
- name: Start MongoDB | ||
uses: supercharge/mongodb-github-action@1.7.0 | ||
uses: supercharge/mongodb-github-action@5a87bd81f88e2a8b195f8b7b656f5cda1350815a # v1.11.0 | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
|
||
- name: Build | ||
run: | | ||
yarn | ||
|
@@ -51,6 +71,7 @@ jobs: | |
popd | ||
env: | ||
CI: true | ||
|
||
- name: Run service | ||
run: | | ||
pushd api-gateway | ||
|
@@ -60,6 +81,7 @@ jobs: | |
yarn start & | ||
popd | ||
sleep 30 | ||
- name: Download file | ||
run: | | ||
rm -fv swagger.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.