forked from perkeep/perkeep
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7321b90
commit cf70224
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
on: [push, pull_request] | ||
name: tests | ||
|
||
jobs: | ||
#linux: | ||
#strategy: | ||
#matrix: | ||
#go-version: [1.x, 1.13.x] | ||
#platform: [ubuntu-latest] | ||
#runs-on: ${{ matrix.platform }} | ||
|
||
#steps: | ||
#- name: Install apt packages | ||
#run: | | ||
#sudo apt-get install -qq pkg-config fuse build-essential libsqlite3-dev | ||
#sudo modprobe fuse | ||
#sudo chmod 666 /dev/fuse | ||
#sudo chown root:$(id -g) /etc/fuse.conf | ||
|
||
#- uses: actions/checkout@v2 | ||
#- uses: actions/setup-go@v2 | ||
#with: | ||
#go-version: ${{ matrix.go-version }} | ||
|
||
## TODO: use actions/cache. Right now, it causes conflicts with devcam | ||
|
||
## devcam expects code in GOPATH/src/perkeep.org and to be able to put build | ||
## artifacts in GOPATH/pkg | ||
#- name: Setup GOPATH | ||
#run: | | ||
#sudo mkdir -p $(go env GOPATH)/src $(go env GOPATH)/pkg | ||
#sudo chmod -R g+w $(go env GOPATH) | ||
#sudo chown -R root:$(id -g) $(go env GOPATH) | ||
#sudo ln -s `pwd` $(go env GOPATH)/src/perkeep.org | ||
|
||
#- name: Build and test | ||
#run: | | ||
#go run make.go -v=true -sqlite=true | ||
#$(go env GOPATH)/bin/devcam test -sqlite=true | ||
|
||
windows: | ||
strategy: | ||
matrix: | ||
go-version: [1.13.x] | ||
platform: [windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/perkeep.org | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Build and test | ||
run: | | ||
pwd | ||
go run make.go | ||
devcam test |