Protocol tests with coverage #64
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 tests are pretty slow and flacky | |
name: Protocol tests with coverage | |
# By default the sha where it runs is latest commit on default branch | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
on: | |
schedule: | |
# daily at 13:00 UTC | |
- cron: 0 13 * * * | |
workflow_dispatch: | |
jobs: | |
# This seems to take ages and last codecov report is from 2021-02-25 :/ | |
# https://app.codecov.io/gh/celo-org/celo-monorepo/commits | |
protocol-test-with-code-coverage: | |
runs-on: ["self-hosted", "monorepo-node18"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install yarn dependencies | |
run: yarn install | |
- name: Build packages | |
run: yarn build --ignore docs --include-dependencies | |
- name: Run protocol tests with coverage | |
run: yarn --cwd packages/protocol test:coverage | |
- name: Store results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: protocol-coverage | |
path: packages/protocol/coverage | |
- name: Upload results to codecov | |
run: yarn codecov -F protocol | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |