chore(deps): bump google.golang.org/protobuf from 1.27.1 to 1.33.0 in /examples/gosigar #120
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: Test | |
on: [ push, pull_request ] | |
jobs: | |
test-ubuntu-20_04: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker Info | |
run: | | |
docker info | |
- name: Pull golang image | |
run: | | |
docker pull golang:1.19 | |
- name: Run tests in Go container (1000m) | |
run: | | |
docker run --rm -v=$(pwd):/app -w=/app -m=1000m golang:1.19 go test -v ./... -expected=1048576000 | |
- name: Run tests in Go container (4321m) | |
run: | | |
docker run --rm -v=$(pwd):/app -w=/app -m=4321m golang:1.19 go test -v ./... -expected=4530896896 | |
- name: Run tests in Go container (system memory limit) | |
run: | | |
docker run --rm -v=$(pwd):/app -w=/app golang:1.19 go test -v ./... -expected-system=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 1024)) | |
test-ubuntu-22_04: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker Info | |
run: | | |
docker info | |
- name: Pull golang image | |
run: | | |
docker pull golang:1.19 | |
- name: Run tests in Go container (1000m) | |
run: | | |
docker run --rm -v=$(pwd):/app -w=/app -m=1000m golang:1.19 go test -v ./... -expected=1048576000 | |
- name: Run tests in Go container (4321m) | |
run: | | |
docker run --rm -v=$(pwd):/app -w=/app -m=4321m golang:1.19 go test -v ./... -expected=4530896896 | |
- name: Run tests in Go container (system memory limit) | |
run: | | |
docker run --rm -v=$(pwd):/app -w=/app golang:1.19 go test -v ./... -expected-system=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 1024)) |