Bump golang.org/x/net from 0.20.0 to 0.36.0 #223
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: "Build and Test" | |
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'deploy/**' | |
- 'examples/**' | |
- '*.md' | |
jobs: | |
test: | |
name: "lint and test" | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
cache: true | |
- name: Lint and Test | |
shell: bash | |
run: | | |
make lint | |
make test-coverage | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
junit_files: ".cover/tests.xml" | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ".cover/coverage.xml" | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: .cover/ | |
retention-days: 7 | |
integration: | |
name: "integration tests" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver-opts: network=host | |
- name: Build and Export Docker Image | |
uses: docker/build-push-action@v5 | |
with: | |
build-args: SKIP_TESTS=true | |
file: docker/Dockerfile | |
context: . | |
tags: pumba:test | |
target: integration-tests | |
outputs: type=docker,dest=/tmp/image.tar | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Run Integration Tests | |
run: | | |
docker load -i /tmp/image.tar | |
docker run -i --rm --name integration-tests -v /var/run/docker.sock:/var/run/docker.sock pumba:test |