Skip to content

Instantly share code, notes, and snippets.

@jpadams
Created November 8, 2022 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpadams/ae659037469940fc5323ae8e79b59dbe to your computer and use it in GitHub Desktop.
Save jpadams/ae659037469940fc5323ae8e79b59dbe to your computer and use it in GitHub Desktop.
# AWS CodeBuild
version: 0.2
phases:
build:
commands:
- docker run --rm --privileged public.ecr.aws/eks-distro-build-tooling/binfmt-misc:qemu-v6.1.0 --install all
- go run ci/main.go test
- tail -n +1 output/*/*/*.out
# GitHub Actions
name: test
on:
push:
branches: [main]
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
run: |
docker run --rm --privileged tonistiigi/binfmt:latest --install all
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- run: go run ci/main.go test
- run: tail -n +1 output/*/*/*.out
# CircleCI
version: 2.1
jobs:
test:
docker:
- image: cimg/go:1.19
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Setup QEMU
command: docker run --rm --privileged tonistiigi/binfmt:latest --install all
- run:
name: Dagger Test Pipeline
command: go run ci/main.go test
- run:
name: Test results
command: tail -n +1 output/*/*/*.out
workflows:
test:
jobs:
- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment