-
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 #404 from rsksmart/master
master -> Stable-Test sync
- Loading branch information
Showing
2 changed files
with
47 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'gomod' | ||
directory : "/" | ||
schedule: | ||
interval: "daily" | ||
target-branch: QA-Test |
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 |
---|---|---|
@@ -1,31 +1,51 @@ | ||
name: liquidity provider server CI | ||
name: Liquidity Provider Server CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- stable-test | ||
- features/devops | ||
branches: [ QA-Test, Stable-Test, master ] | ||
pull_request: | ||
branches: [ QA-Test, Stable-Test, master ] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
checks: write | ||
|
||
jobs: | ||
ci: | ||
name: CI for liquidity server | ||
unit-tests: | ||
name: Unit tests execution | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: testnet | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.17 | ||
go-version-file: 'go.mod' | ||
|
||
- name: Verify dependencies | ||
run: go mod verify | ||
- name: Check go version | ||
run: go version | ||
|
||
- name: Build | ||
run: go build -v ./ | ||
- name: Install dependencies | ||
run: go mod download | ||
|
||
- name: Run unit test | ||
run: make test | ||
|
||
code-lint: | ||
name: Source code format validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: v1.55.2 |