Skip to content

Commit

Permalink
Update Build GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Apr 22, 2021
1 parent d268ee5 commit 5e238d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Set branch name
id: set-branch-name
run: |
if [[ -z "${GITHUB_HEAD_REF##*/}" ]]; then
echo "::set-output name=BRANCH_NAME::${GITHUB_REF##*/}"
else
echo "::set-output name=BRANCH_NAME::${GITHUB_HEAD_REF##*/}"
fi
- name: Run tests using Docker
run: ./compose-test.sh
env:
BRANCH_NAME: ${{ steps.set-branch-name.outputs.BRANCH_NAME }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down

0 comments on commit 5e238d8

Please sign in to comment.