Skip to content

Commit

Permalink
debian 6 test: deal with multiple packages (#474)
Browse files Browse the repository at this point in the history
* debian 6 test: deal with multiple packages

The ./cmd/fsnotify doesn't have any tests, but sooner or later we'll
have subpackages so deal with it properly now.

* Cache vagrant boxes
  • Loading branch information
arp242 committed Jul 29, 2022
1 parent a3256ef commit 421f529
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/vagrant.yml
Expand Up @@ -11,7 +11,16 @@ jobs:
- debian6
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: checkout
uses: actions/checkout@v3

- name: Cache Vagrant boxes
uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-
- name: setup Go
uses: actions/setup-go@v3
Expand All @@ -21,6 +30,12 @@ jobs:
- name: test
run: |
cp -f .github/workflows/Vagrantfile.${{ matrix.image }} Vagrantfile
GOOS=linux GOARCH=amd64 go test -o fsnotify.test -c ./...
export GOOS=linux
export GOARCH=amd64
for p in $(go list ./...); do
go test -c -o ${p//\//-}.test $p
done
vagrant up
vagrant ssh -c "/vagrant/fsnotify.test"
for t in *.test; do
vagrant ssh -c "/vagrant/$t"
done

0 comments on commit 421f529

Please sign in to comment.