ci: change cron frequency to fix ghost jobs #102
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: ci-badger-tests-coverage | |
on: | |
pull_request_target: | |
branches: | |
- main | |
- 'release/v*' | |
jobs: | |
badger-tests-coverage: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 # checkout merge commit | |
with: | |
ref: "refs/pull/${{ github.event.number }}/merge" | |
- name: Get Go Version | |
run: | | |
#!/bin/bash | |
GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) | |
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GOVERSION }} | |
- name: Install Dependencies | |
run: make dependency | |
- name: Run Badger Tests | |
run: make test | |
- name: Install Goveralls | |
run: go install github.com/mattn/goveralls@latest | |
- name: Send Coverage Results | |
env: | |
COVERALLS_TOKEN: ${{ secrets.COVERALLSIO_TOKEN }} | |
run: goveralls -coverprofile=cover.out |