chore(deps): update opentelemetry collector to v0.90.0 #323
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] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "~1.21.3" | |
check-latest: true | |
cache-dependency-path: internal/tools/go.sum | |
- name: Cache tools | |
uses: actions/cache@v3 | |
with: | |
path: .tools | |
key: ci-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | |
- name: Touch tools | |
run: | | |
mkdir -p .tools | |
touch .tools/* | |
- name: Build | |
run: make build | |
- name: Print components | |
run: make components | |
- name: Verify | |
run: make test | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/golang@master | |
if: github.ref == 'refs/heads/main' | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
command: monitor | |
args: --file=build/go.mod |