RF: split out redirects test cases #47
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: 🧪 Execute Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code 🛎️ | |
uses: actions/checkout@v2 | |
- name: Set up Go 🧰 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22.4 | |
- name: Install dependencies ⏬ | |
run: go mod tidy | |
- name: Run tests 🛠️ | |
run: make test | |
- name: Report coverage 📈 | |
run: go test -coverprofile=coverage.out ./... | |
- name: Upload coverage to Codecov 📤 | |
uses: codecov/codecov-action@v2 | |
with: | |
files: coverage.out | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |