Skip to content

Commit

Permalink
add GitHub Actions config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Sep 12, 2020
1 parent 7321b90 commit cf70224
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/tests.yml
@@ -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

0 comments on commit cf70224

Please sign in to comment.