Skip to content

git safe.directory: try full directory path #49

git safe.directory: try full directory path

git safe.directory: try full directory path #49

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
testandinstall:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Ensure we are on Go 1.18:
- uses: actions/setup-go@v2
with:
go-version: '^1.18'
- run: go version
- name: Ensure all files were formatted as per gofmt
run: |
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]
- name: run tests
run: go test ./...
- name: install binaries
run: go install github.com/stapelberg/scan2drive github.com/stapelberg/scan2drive/cmd/...
- name: Build Docker container for scan2drive
run: |
docker build --pull --no-cache --rm -t=scan2drive -f .github/workflows/Dockerfile .
- name: build scan2drive with bundled libturbojpeg
run: |
docker run \
--init \
--volume $PWD:/usr/src/scan2drive \
scan2drive \
.github/workflows/build-scan2drive.bash