Sort events before applying them to aggregate #191
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
unit: | |
name: Unit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Test | |
shell: bash | |
run: | | |
make test_cover | |
- name: Store coverage | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage | |
path: unit.coverprofile | |
integration: | |
name: Integration | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Services | |
shell: bash | |
run: | | |
make run && sleep 15 | |
- name: Test | |
shell: bash | |
run: | | |
make test_integration_cover | |
- name: Store coverage | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage | |
path: integration.coverprofile | |
finish: | |
name: Finish | |
runs-on: ubuntu-latest | |
needs: [unit, integration] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Load coverage | |
uses: actions/download-artifact@v2 | |
with: | |
name: coverage | |
- name: Merge coverage | |
shell: bash | |
run: | | |
make merge_coverage | |
- name: Convert coverage | |
uses: jandelgado/[email protected] | |
with: | |
infile: coverage.out | |
outfile: coverage.lcov | |
- name: Upload coverage | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: coverage.lcov |