chore(deps): bump the dependencies group across 1 directory with 19 updates #709
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: parallel | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-pkgs: | |
name: test pkgs | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run tests coverage | |
run: go test ./coverage/... -coverprofile=coverage_coverage.out -covermode=count | |
- name: Run tests ratio | |
run: go test ./ratio/... -coverprofile=coverage_ratio.out -covermode=count | |
- name: Run tests badge | |
run: go test ./badge/... -coverprofile=coverage_badge.out -covermode=count | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report-files-pkgs | |
path: | | |
coverage_coverage.out | |
coverage_ratio.out | |
coverage_badge.out | |
test-other: | |
name: test other | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run tests other | |
run: go test $(go list ./... | grep -v coverage | grep -v ratio | grep -v badge) -coverprofile=coverage_other.out -covermode=count | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report-files-other | |
path: | | |
coverage_other.out | |
collect-metrics: | |
name: collect metrics | |
needs: | |
- test-pkgs | |
- test-other | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DEBUG: 1 | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
id: setup-go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: coverage-report-files* | |
merge-multiple: true | |
- name: Build octocov and run as a action | |
uses: ./testdata/actions/collect | |
env: | |
GOTOOLCHAIN: 'go${{ steps.setup-go.outputs.go-version }}' |