forked from vocdoni/vocdoni-node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
30 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
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 |
---|---|---|
|
@@ -25,9 +25,9 @@ jobs: | |
echo github.head_ref: ${{ github.head_ref }} | ||
echo github.base_ref: ${{ github.base_ref }} | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Go environment | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Tidy go module | ||
|
@@ -61,7 +61,7 @@ jobs: | |
- name: Run staticcheck | ||
run: | | ||
./staticcheck/staticcheck ./... 2> staticcheck/stderr | ||
- name: Check staticcheck stderr (this step isn't needed because we are using actions/setup-go@v3 on GitHub hosted runner) | ||
- name: Check staticcheck stderr (this step isn't needed because we are using actions/setup-go@v5 on GitHub hosted runner) | ||
run: | | ||
if cat staticcheck/stderr | grep "matched no packages" ; then | ||
echo "staticcheck step did nothing, due to https://github.com/vocdoni/vocdoni-node/issues/444" | ||
|
@@ -81,9 +81,9 @@ jobs: | |
env: | ||
LOG_PANIC_ON_INVALIDCHARS: true # check that log lines contains no invalid chars (evidence of format mismatch) | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha | ||
- uses: actions/setup-go@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- run: mkdir -p "$PWD/gocoverage-unit/" | ||
|
@@ -105,15 +105,15 @@ jobs: | |
run: go test ./... | ||
-cover -coverpkg=./... -covermode=count -args -test.gocoverdir="$PWD/gocoverage-unit/" | ||
- name: Store code coverage artifact (unit) | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: gocoverage-unit@${{ env.SHA }} | ||
path: gocoverage-unit/ | ||
|
||
job_compose_test: | ||
runs-on: [self-hosted, ci2-1] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha | ||
- name: Run compose script | ||
env: | ||
|
@@ -128,7 +128,7 @@ jobs: | |
run: | | ||
cd dockerfiles/testsuite && ./start_test.sh | ||
- name: Store code coverage artifact (integration) | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: gocoverage-integration@${{ env.SHA }} | ||
path: dockerfiles/testsuite/gocoverage-integration/ | ||
|
@@ -137,8 +137,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Run go build for Mac | ||
|
@@ -162,10 +162,10 @@ jobs: | |
needs: [job_go_test, job_compose_test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/setup-go@v4 | ||
- uses: actions/download-artifact@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
cache: false | ||
|
@@ -188,7 +188,7 @@ jobs: | |
rm -f gocoverage-unit@${{ env.SHA }}.tmp | ||
- name: Store code coverage artifact (all, textfmt) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: gocoverage-all-textfmt@${{ env.SHA }} | ||
path: gocoverage-*.txt | ||
|
@@ -199,9 +199,9 @@ jobs: | |
needs: [job_gocoverage_textfmt] | ||
continue-on-error: true # never mark the whole CI as failed because of this job | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: gocoverage-all-textfmt@${{ env.SHA }} | ||
- name: Send coverage to coveralls.io (unit) | ||
|
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