summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-05 19:46:10 +0300
committerValery Piashchynski <[email protected]>2021-01-05 19:46:10 +0300
commit49e2440dd0be8b54ad08586e822333a3ed5e0db6 (patch)
tree786d73608f52a8f5255951d8f5b06e5f6a00f6fd /.github
parent763de0b501e3d427c1751e8972bda2be415ed224 (diff)
Fix LGTM warnings, reduce memory allocations when looping over maps
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ea35c8e5..f9efbde0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -37,12 +37,12 @@ jobs:
uses: actions/checkout@v2
- name: Get Composer Cache Directory
- if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest' }}
+ if: ${{ matrix.os != 'windows-latest' }}
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Init Composer Cache # Docs: <https://git.io/JfAKn#php---composer>
- if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest' }}
+ if: ${{ matrix.os != 'windows-latest' }}
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
@@ -86,7 +86,7 @@ jobs:
go test -v -race -cover -tags=debug ./tests/plugins/static
- name: Run golang tests on Linux and MacOS
- if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest' }}
+ if: ${{ matrix.os != 'windows-latest' }}
run: |
mkdir ./coverage-ci
go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/utils.txt -covermode=atomic ./utils
@@ -111,7 +111,7 @@ jobs:
cat ./coverage-ci/*.txt > ./coverage-ci/summary.txt
- uses: codecov/codecov-action@v1 # Docs: <https://github.com/codecov/codecov-action>
- if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest' }}
+ if: ${{ matrix.os != 'windows-latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage-ci/summary.txt