Skip to content

Commit

Permalink
maintenance: Fixup pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed May 23, 2022
1 parent ffbb095 commit 5e1c53f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ jobs:
- name: Setup Dart Action
uses: dart-lang/setup-dart@v1

- name: Install lcov
run: sudo apt-get install -y lcov

- name: Checkout
uses: actions/[email protected]

Expand All @@ -88,28 +85,3 @@ jobs:

- name: Unit tests
run: dart run test --coverage="coverage" test/unit/**

- name: Integration tests
if: ${{ env.TEST_TOKEN }} != ''
run: dart run test --coverage="coverage" test/integration/**

- name: Format coverage
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage/coverage.lcov --packages=.packages --report-on=lib

- name: Generate coverage
run: genhtml coverage/coverage.lcov -o coverage/coverage_gen

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Deploy code coverage
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_SERVER_KEY }}
ARGS: '-rltDzvO --rsync-path="mkdir -p ${{ secrets.DEPLOY_REMOTE_TARGET }}/coverage/nyxx/${{ steps.extract_branch.outputs.branch }}/ && rsync"'
SOURCE: "coverage/coverage_gen/"
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }}
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/coverage/nyxx/${{ steps.extract_branch.outputs.branch }}/"

0 comments on commit 5e1c53f

Please sign in to comment.