Skip to content

Also close the underlying connection when done #156

Also close the underlying connection when done

Also close the underlying connection when done #156

Workflow file for this run

name: Unit tests
on:
pull_request:
push:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '^1.18'
- name: Run Build
run: |
docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock --rm -t -v $(pwd):/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.6.21 --allow-privileged +dist
- name: Run tests
run: |
docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock --rm -t -v $(pwd):/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.6.21 --allow-privileged +test
- name: Codecov
uses: codecov/codecov-action@v2
with:
file: ./coverage.out