chore(deps): bump golang.org/x/tools from 0.23.0 to 0.26.0 (#123) #446
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
checks: | |
name: Linting | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Golang Environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Lint Code | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
only-new-issues: true | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-22.04 | |
needs: checks | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang Environment | |
uses: actions/setup-go@v5 | |
- name: Run Tests | |
run: make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./results/crossplane-go-coverage.out |