Skip to content

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 #20

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 #20

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deps:
strategy:
matrix:
version: ['1.18.0', '1.18.1']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.version }}
test:
permissions:
contents: read
issues: write
pull-requests: write
needs: ["deps"]
strategy:
matrix:
version: ['1.18.0', '1.18.1']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.version }}
- name: Main branch coverage
uses: actions/cache@v3
if: matrix.version == '1.18.1'
with:
path: |
main.lcov
key: ${{ runner.os }}-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-refs/heads/main-
- name: Test
run: go test -v -coverprofile coverage.out -race ./...
- name: Bench
run: go test -v -run ^$ -bench . ./...
- uses: jandelgado/[email protected]
if: matrix.version == '1.18.1'
- name: Store main branch lcov
if: github.ref == 'refs/heads/main' && matrix.version == '1.18.1'
run: cp coverage.lcov main.lcov
- name: Code Coverage Report
uses: osmind-development-org/[email protected]
if: matrix.version == '1.18.1' && github.event_name == 'pull_request'
with:
lcov-file: ./coverage.lcov
lcov-base: ./main.lcov
delete-old-comments: true
github-token: ${{ secrets.GITHUB_TOKEN }}